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....