Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 18 additions & 17 deletions wp-cache-config-sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,24 @@
See wp-cache.php for author details.
*/

if ( ! defined('WPCACHEHOME') )
if ( ! defined( 'WPCACHEHOME' ) ) {
define( 'WPCACHEHOME', WP_PLUGIN_DIR . '/wp-super-cache/' );
}

$cache_compression = 0; // Super cache compression
$cache_enabled = false;
$super_cache_enabled = true;
$cache_max_time = 3600; //in seconds
//$use_flock = true; // Set it true or false if you know what to use
$cache_max_time = 3600; // in seconds
// $use_flock = true; // Set it true or false if you know what to use
$cache_path = WP_CONTENT_DIR . '/cache/';
$file_prefix = 'wp-cache-';
$ossdlcdn = 0;

// Array of files that have 'wp-' but should still be cached
$cache_acceptable_files = array( 'wp-comments-popup.php', 'wp-links-opml.php', 'wp-locations.php' );

$cache_rejected_uri = array('wp-.*\\.php', 'index\\.php');
$cache_rejected_user_agent = array ( 0 => 'bot', 1 => 'ia_archive', 2 => 'slurp', 3 => 'crawl', 4 => 'spider', 5 => 'Yandex' );
$cache_rejected_uri = array( 'wp-.*\\.php', 'index\\.php' );
$cache_rejected_user_agent = array( 0 => 'bot', 1 => 'ia_archive', 2 => 'slurp', 3 => 'crawl', 4 => 'spider', 5 => 'Yandex', );

$cache_rebuild_files = 1;

Expand All @@ -33,7 +34,7 @@
// Just modify it if you have conflicts with semaphores
$sem_id = 5419;

if ( '/' != substr($cache_path, -1)) {
if ( '/' != substr( $cache_path, -1 ) ) {
$cache_path .= '/';
}

Expand Down Expand Up @@ -63,16 +64,16 @@
$wp_cache_debug_ip = '';
$wp_cache_debug_log = '';
$wp_cache_debug_email = '';
$wp_cache_pages[ "search" ] = 0;
$wp_cache_pages[ "feed" ] = 0;
$wp_cache_pages[ "category" ] = 0;
$wp_cache_pages[ "home" ] = 0;
$wp_cache_pages[ "frontpage" ] = 0;
$wp_cache_pages[ "tag" ] = 0;
$wp_cache_pages[ "archives" ] = 0;
$wp_cache_pages[ "pages" ] = 0;
$wp_cache_pages[ "single" ] = 0;
$wp_cache_pages[ "author" ] = 0;
$wp_cache_pages['search'] = 0;
$wp_cache_pages['feed'] = 0;
$wp_cache_pages['category'] = 0;
$wp_cache_pages['home'] = 0;
$wp_cache_pages['frontpage'] = 0;
$wp_cache_pages['tag'] = 0;
$wp_cache_pages['archives'] = 0;
$wp_cache_pages['pages'] = 0;
$wp_cache_pages['single'] = 0;
$wp_cache_pages['author'] = 0;
$wp_cache_hide_donation = 0;
$wp_cache_not_logged_in = 0;
$wp_cache_clear_on_post_edit = 0;
Expand Down Expand Up @@ -102,4 +103,4 @@
$wpsc_save_headers = 0;
$cache_schedule_interval = 'daily';
$wp_super_cache_comments = 1;
?>