Ejemplo n.º 1
0
 public static function doNotCache()
 {
     header("Cache-Control: no-cache, must-revalidate");
     header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
     //In the past
     if (!defined('DONOTCACHEPAGE')) {
         define('DONOTCACHEPAGE', true);
     }
     if (!defined('DONOTCACHEDB')) {
         define('DONOTCACHEDB', true);
     }
     if (!defined('DONOTCDN')) {
         define('DONOTCDN', true);
     }
     if (!defined('DONOTCACHEOBJECT')) {
         define('DONOTCACHEOBJECT', true);
     }
     wfCache::doNotCache();
 }
Ejemplo n.º 2
0
 public static function doNotCache()
 {
     //Call this to prevent Wordfence from caching the current page.
     wfCache::doNotCache();
     return true;
 }