Skip to content

Commit

Permalink
Honor DONOTCACHEPAGE constant
Browse files Browse the repository at this point in the history
Props @nlemoine
Fixes #24
  • Loading branch information
kovshenin committed Jan 10, 2023
1 parent c20677e commit 676a73d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
$skip = true;
}

if ( defined( 'DONOTCACHEPAGE' ) && DONOTCACHEPAGE ) {
$skip = true;
}

if ( $skip ) {
return $contents;
}
Expand Down

0 comments on commit 676a73d

Please sign in to comment.