Quantcast
Channel: wp-super-cache – WordPress.org Forums
Viewing all articles
Browse latest Browse all 3480

G-Olly on "[Plugin: WP Super Cache] Nothing caching at all, don't understand!!"

$
0
0

OK I have gone to the class-wc-cache-helper.php and changed the:

/**
* Set nocache constants and headers.
*
* @access private
* @return void
*/
private function nocache() {
if ( ! defined( 'DONOTCACHEPAGE' ) )
define( "DONOTCACHEPAGE", "true" );

if ( ! defined( 'DONOTCACHEOBJECT' ) )
define( "DONOTCACHEOBJECT", "true" );

if ( ! defined( 'DONOTCACHEDB' ) )
define( "DONOTCACHEDB", "true" );

nocache_headers();
}

to

/**
* Set nocache constants and headers.
*
* @access private
* @return void
*/
private function nocache() {
if ( ! defined( 'DONOTCACHEPAGE' ) )
define( "DONOTCACHEPAGE", "false" );

if ( ! defined( 'DONOTCACHEOBJECT' ) )
define( "DONOTCACHEOBJECT", "false" );

if ( ! defined( 'DONOTCACHEDB' ) )
define( "DONOTCACHEDB", "false" );

nocache_headers();
}

as I thought this might just be a test to see if this would allow the caching to work. Unfortunately not the cache is still not working. Hmmm....


Viewing all articles
Browse latest Browse all 3480

Trending Articles