Merge pull request #4591 from alexbain/do-not-cache
Enhancing nocache helper
This commit is contained in:
commit
9bc14a4aa5
|
@ -76,6 +76,12 @@ class WC_Cache_Helper {
|
|||
if ( ! defined( 'DONOTCACHEPAGE' ) )
|
||||
define( "DONOTCACHEPAGE", "true" );
|
||||
|
||||
if ( ! defined( 'DONOTCACHEOBJECT' ) )
|
||||
define( "DONOTCACHEOBJECT", "true" );
|
||||
|
||||
if ( ! defined( 'DONOTCACHEDB' ) )
|
||||
define( "DONOTCACHEDB", "true" );
|
||||
|
||||
nocache_headers();
|
||||
}
|
||||
|
||||
|
@ -103,4 +109,4 @@ class WC_Cache_Helper {
|
|||
}
|
||||
}
|
||||
|
||||
new WC_Cache_Helper();
|
||||
new WC_Cache_Helper();
|
||||
|
|
Loading…
Reference in New Issue