diff --git a/projects/plugins/boost/app/modules/cache/Boost_Cache.php b/projects/plugins/boost/app/modules/cache/Boost_Cache.php index 0e8ccecd0dd44..d542a2ff27431 100644 --- a/projects/plugins/boost/app/modules/cache/Boost_Cache.php +++ b/projects/plugins/boost/app/modules/cache/Boost_Cache.php @@ -69,6 +69,10 @@ public function is_cacheable() { return false; } + if ( defined( 'DONOTCACHEPAGE' ) ) { + return false; + } + if ( $this->is_fatal_error() ) { return false; } diff --git a/projects/plugins/boost/changelog/boost-cache-donotcachepage-constant b/projects/plugins/boost/changelog/boost-cache-donotcachepage-constant new file mode 100644 index 0000000000000..021cc1ceac64b --- /dev/null +++ b/projects/plugins/boost/changelog/boost-cache-donotcachepage-constant @@ -0,0 +1,4 @@ +Significance: minor +Type: added + +Boost: add support for DONOTCACHEPAGE to Cache module