Doesn’t respect DONOTCACHEPAGE
-
Hello.
I’m one of the developers behind SecuPress.When we block a request we define the constant
DONOTCACHEPAGEto prevent cache plugins to store our message.
But I see you use it only for WordFence:// for Wordfence: not to cache 503 pages if(defined('DONOTCACHEPAGE') && $this->isPluginActive('wordfence/wordfence.php')){ if(function_exists("http_response_code") && http_response_code() == 503){ return $buffer."<!-- DONOTCACHEPAGE is defined as TRUE -->"; } }Our customers obviously face the “blocked” message, which was previously cached. Could you simply use this constant for everyone?
// For plugins that ask not to cache the current page. if ( defined( 'DONOTCACHEPAGE' ) && DONOTCACHEPAGE ) { return $buffer . '<!-- DONOTCACHEPAGE is defined as TRUE -->'; }Thank you.
Greg
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘Doesn’t respect DONOTCACHEPAGE’ is closed to new replies.