Merge pull request #4591 from alexbain/do-not-cache

Enhancing nocache helper
This commit is contained in:
Mike Jolley 2014-01-29 05:10:39 -08:00
commit 9bc14a4aa5
1 changed files with 7 additions and 1 deletions

View File

@ -76,6 +76,12 @@ class WC_Cache_Helper {
if ( ! defined( 'DONOTCACHEPAGE' ) ) if ( ! defined( 'DONOTCACHEPAGE' ) )
define( "DONOTCACHEPAGE", "true" ); define( "DONOTCACHEPAGE", "true" );
if ( ! defined( 'DONOTCACHEOBJECT' ) )
define( "DONOTCACHEOBJECT", "true" );
if ( ! defined( 'DONOTCACHEDB' ) )
define( "DONOTCACHEDB", "true" );
nocache_headers(); nocache_headers();
} }
@ -103,4 +109,4 @@ class WC_Cache_Helper {
} }
} }
new WC_Cache_Helper(); new WC_Cache_Helper();