changeset 194 | 32102edaa81b |
parent 136 | bde1974c263b |
193:2f6f6f7551ca | 194:32102edaa81b |
---|---|
4 |
4 |
5 See wp-cache.php for author details. |
5 See wp-cache.php for author details. |
6 */ |
6 */ |
7 |
7 |
8 if ( ! defined('WPCACHEHOME') ) |
8 if ( ! defined('WPCACHEHOME') ) |
9 define( 'WPCACHEHOME', WP_CONTENT_DIR . '/plugins/wp-super-cache/' ); |
9 define( 'WPCACHEHOME', WP_PLUGIN_DIR . '/wp-super-cache/' ); |
10 |
10 |
11 $cache_compression = 0; // Super cache compression |
11 $cache_compression = 0; // Super cache compression |
12 $cache_enabled = false; |
12 $cache_enabled = false; |
13 $super_cache_enabled = false; |
13 $super_cache_enabled = false; |
14 $cache_max_time = 3600; //in seconds |
14 $cache_max_time = 3600; //in seconds |
15 //$use_flock = true; // Set it true or false if you know what to use |
15 //$use_flock = true; // Set it true or false if you know what to use |
16 $cache_path = WP_CONTENT_DIR . '/cache/'; |
16 $cache_path = WP_CONTENT_DIR . '/cache/'; |
17 $file_prefix = 'wp-cache-'; |
17 $file_prefix = 'wp-cache-'; |
18 |
18 $ossdlcdn = 0; |
19 // We want to be able to identify each blog in a WordPress MU install |
|
20 $blogcacheid = ''; |
|
21 if( defined( 'VHOST' ) ) { |
|
22 $blogcacheid = 'blog'; // main blog |
|
23 if( constant( 'VHOST' ) == 'yes' ) { |
|
24 $blogcacheid = $_SERVER['HTTP_HOST']; |
|
25 } else { |
|
26 $request_uri = preg_replace('/[ <>\'\"\r\n\t\(\)]/', '', str_replace( '..', '', $_SERVER['REQUEST_URI'] ) ); |
|
27 if( strpos( $request_uri, '/', 1 ) ) { |
|
28 if( $base == '/' ) { |
|
29 $blogcacheid = substr( $request_uri, 1, strpos( $request_uri, '/', 1 ) - 1 ); |
|
30 } else { |
|
31 $blogcacheid = str_replace( $base, '', $request_uri ); |
|
32 $blogcacheid = substr( $blogcacheid, 0, strpos( $blogcacheid, '/', 1 ) ); |
|
33 } |
|
34 if ( '/' == substr($blogcacheid, -1)) |
|
35 $blogcacheid = substr($blogcacheid, 0, -1); |
|
36 } |
|
37 $blogcacheid = str_replace( '/', '', $blogcacheid ); |
|
38 } |
|
39 } |
|
40 |
19 |
41 // Array of files that have 'wp-' but should still be cached |
20 // Array of files that have 'wp-' but should still be cached |
42 $cache_acceptable_files = array( 'wp-comments-popup.php', 'wp-links-opml.php', 'wp-locations.php' ); |
21 $cache_acceptable_files = array( 'wp-comments-popup.php', 'wp-links-opml.php', 'wp-locations.php' ); |
43 |
22 |
44 $cache_rejected_uri = array('wp-.*\\.php', 'index\\.php'); |
23 $cache_rejected_uri = array('wp-.*\\.php', 'index\\.php'); |
45 $cache_rejected_user_agent = array ( 0 => 'bot', 1 => 'ia_archive', 2 => 'slurp', 3 => 'crawl', 4 => 'spider', 5 => 'Yandex' ); |
24 $cache_rejected_user_agent = array ( 0 => 'bot', 1 => 'ia_archive', 2 => 'slurp', 3 => 'crawl', 4 => 'spider', 5 => 'Yandex' ); |
46 |
25 |
47 $cache_rebuild_files = 1; |
26 $cache_rebuild_files = 1; |
48 |
|
49 |
27 |
50 // Disable the file locking system. |
28 // Disable the file locking system. |
51 // If you are experiencing problems with clearing or creating cache files |
29 // If you are experiencing problems with clearing or creating cache files |
52 // uncommenting this may help. |
30 // uncommenting this may help. |
53 $wp_cache_mutex_disabled = 1; |
31 $wp_cache_mutex_disabled = 1; |
61 |
39 |
62 $wp_cache_mobile = 0; |
40 $wp_cache_mobile = 0; |
63 $wp_cache_mobile_whitelist = 'Stand Alone/QNws'; |
41 $wp_cache_mobile_whitelist = 'Stand Alone/QNws'; |
64 $wp_cache_mobile_browsers = 'Android, 2.0 MMP, 240x320, AvantGo, BlackBerry, Blazer, Cellphone, Danger, DoCoMo, Elaine/3.0, EudoraWeb, hiptop, IEMobile, iPhone, iPod, KYOCERA/WX310K, LG/U990, MIDP-2.0, MMEF20, MOT-V, NetFront, Newt, Nintendo Wii, Nitro, Nokia, Opera Mini, Palm, Playstation Portable, portalmmm, Proxinet, ProxiNet, SHARP-TQ-GX10, Small, SonyEricsson, Symbian OS, SymbianOS, TS21i-10, UP.Browser, UP.Link, Windows CE, WinWAP'; |
42 $wp_cache_mobile_browsers = 'Android, 2.0 MMP, 240x320, AvantGo, BlackBerry, Blazer, Cellphone, Danger, DoCoMo, Elaine/3.0, EudoraWeb, hiptop, IEMobile, iPhone, iPod, KYOCERA/WX310K, LG/U990, MIDP-2.0, MMEF20, MOT-V, NetFront, Newt, Nintendo Wii, Nitro, Nokia, Opera Mini, Palm, Playstation Portable, portalmmm, Proxinet, ProxiNet, SHARP-TQ-GX10, Small, SonyEricsson, Symbian OS, SymbianOS, TS21i-10, UP.Browser, UP.Link, Windows CE, WinWAP'; |
65 |
43 |
66 // gzip the first page generated for clients that support it. |
|
67 $wp_cache_gzip_first = 0; |
|
68 // change to relocate the supercache plugins directory |
44 // change to relocate the supercache plugins directory |
69 $wp_cache_plugins_dir = WPCACHEHOME . 'plugins'; |
45 $wp_cache_plugins_dir = WPCACHEHOME . 'plugins'; |
70 // set to 1 to do garbage collection during normal process shutdown instead of wp-cron |
46 // set to 1 to do garbage collection during normal process shutdown instead of wp-cron |
71 $wp_cache_shutdown_gc = 0; |
47 $wp_cache_shutdown_gc = 0; |
72 $wp_super_cache_late_init = 0; |
48 $wp_super_cache_late_init = 0; |
73 |
49 |
74 // uncomment the next line to enable advanced debugging features |
50 // uncomment the next line to enable advanced debugging features |
75 //$wp_super_cache_advanced_debug = 1; |
51 $wp_super_cache_advanced_debug = 0; |
52 $wp_super_cache_front_page_text = ''; |
|
53 $wp_super_cache_front_page_clear = 0; |
|
76 $wp_super_cache_front_page_check = 0; |
54 $wp_super_cache_front_page_check = 0; |
77 $wp_super_cache_front_page_clear = 0; |
55 $wp_super_cache_front_page_notification = '0'; |
78 $wp_super_cache_front_page_text = ''; |
56 |
57 $wp_cache_object_cache = 0; |
|
58 $wp_cache_anon_only = 0; |
|
59 $wp_supercache_cache_list = 0; |
|
60 $wp_cache_debug_to_file = 0; |
|
61 $wp_super_cache_debug = 0; |
|
62 $wp_cache_debug_level = 5; |
|
63 $wp_cache_debug_ip = ''; |
|
64 $wp_cache_debug_log = ''; |
|
65 $wp_cache_debug_email = ''; |
|
66 $wp_cache_pages[ "search" ] = 0; |
|
67 $wp_cache_pages[ "feed" ] = 0; |
|
68 $wp_cache_pages[ "category" ] = 0; |
|
69 $wp_cache_pages[ "home" ] = 0; |
|
70 $wp_cache_pages[ "frontpage" ] = 0; |
|
71 $wp_cache_pages[ "tag" ] = 0; |
|
72 $wp_cache_pages[ "archives" ] = 0; |
|
73 $wp_cache_pages[ "pages" ] = 0; |
|
74 $wp_cache_pages[ "single" ] = 0; |
|
75 $wp_cache_pages[ "author" ] = 0; |
|
76 $wp_cache_hide_donation = 0; |
|
77 $wp_cache_not_logged_in = 0; |
|
78 $wp_cache_clear_on_post_edit = 0; |
|
79 $wp_cache_hello_world = 0; |
|
80 $wp_cache_mobile_enabled = 0; |
|
81 $wp_cache_cron_check = 0; |
|
79 ?> |
82 ?> |