PluginProbe ʕ •ᴥ•ʔ
WP Super Cache / 1.5.3
WP Super Cache v1.5.3
3.1.1 trunk 0.1 0.2 0.3 0.3.1 0.4 0.5 0.5.1 0.5.2 0.5.3 0.6.2 0.6.3 0.6.4 0.6.5 0.6.6 0.6.7 0.6.8 0.7 0.7.1 0.8 0.8.1 0.8.2 0.8.3 0.8.4 0.8.5 0.8.6 0.8.7 0.8.8 0.8.9 0.9 0.9.1 0.9.2 0.9.3 0.9.3.1 0.9.4 0.9.4.1 0.9.4.2 0.9.4.3 0.9.5 0.9.6 0.9.6.1 0.9.7 0.9.8 0.9.9 0.9.9.1 0.9.9.2 0.9.9.3 0.9.9.4 0.9.9.5 0.9.9.6 0.9.9.7 0.9.9.8 0.9.9.9 1.0 1.0.1 1.1 1.1.1 1.10.0 1.11.0 1.12.0 1.12.1 1.12.2 1.12.3 1.12.4 1.2 1.2.1 1.3 1.3.1 1.3.2 1.3.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.7.1 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.8 1.9 1.9.1 1.9.2 1.9.3 1.9.4 2.0.0 2.0.1 3.0.0 3.0.1 3.0.2 3.0.3 3.1.0
wp-super-cache / wp-cache-base.php
wp-super-cache Last commit date
languages 13 years ago plugins 8 years ago rest 8 years ago advanced-cache.php 9 years ago ossdl-cdn.php 8 years ago readme.txt 8 years ago wp-cache-base.php 8 years ago wp-cache-config-sample.php 8 years ago wp-cache-phase1.php 8 years ago wp-cache-phase2.php 8 years ago wp-cache.php 8 years ago wp-super-cache.pot 9 years ago
wp-cache-base.php
35 lines
1 <?php
2 if ( false == isset( $_SERVER[ 'HTTP_HOST' ] ) ) {
3 $cache_enabled = false;
4 $WPSC_HTTP_HOST = '';
5 } else {
6 $WPSC_HTTP_HOST = htmlentities( $_SERVER[ 'HTTP_HOST' ] );
7 }
8
9 // We want to be able to identify each blog in a WordPress MU install
10 $blogcacheid = '';
11 if ( ( defined( 'WP_ALLOW_MULTISITE' ) && constant( 'WP_ALLOW_MULTISITE' ) == true ) || defined( 'SUBDOMAIN_INSTALL' ) || defined( 'VHOST' ) || defined( 'SUNRISE' ) ) {
12 $blogcacheid = 'blog'; // main blog
13 if( defined( 'SUBDOMAIN_INSTALL' ) && constant( 'SUBDOMAIN_INSTALL' ) == true ) {
14 $blogcacheid = $WPSC_HTTP_HOST;
15 } else {
16 if ( isset( $base ) == false )
17 $base = '';
18 $request_uri = str_replace( '..', '', preg_replace('/[ <>\'\"\r\n\t\(\)]/', '', $_SERVER['REQUEST_URI'] ) );
19 if( strpos( $request_uri, '/', 1 ) ) {
20 if( $base == '/' ) {
21 $blogcacheid = substr( $request_uri, 1, strpos( $request_uri, '/', 1 ) - 1 );
22 } else {
23 $blogcacheid = str_replace( $base, '', $request_uri );
24 if ( $blogcacheid != '' )
25 $blogcacheid = substr( $blogcacheid, 0, strpos( $blogcacheid, '/', 1 ) );
26 }
27 if ( '/' == substr($blogcacheid, -1))
28 $blogcacheid = substr($blogcacheid, 0, -1);
29 }
30 $blogcacheid = str_replace( '/', '', $blogcacheid );
31 }
32 }
33
34 ?>
35