Skip to content

Commit

Permalink
Boost: add support for DONOTCACHEPAGE constant to Cache module (#35362)
Browse files Browse the repository at this point in the history
* Add support for DONOTCACHEPAGE constant

* changelog
  • Loading branch information
donnchawp authored Feb 1, 2024
1 parent 2b0acd5 commit 6827718
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/plugins/boost/app/modules/cache/Boost_Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ public function is_cacheable() {
return false;
}

if ( defined( 'DONOTCACHEPAGE' ) ) {
return false;
}

if ( $this->is_fatal_error() ) {
return false;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Boost: add support for DONOTCACHEPAGE to Cache module

0 comments on commit 6827718

Please sign in to comment.