Last active
November 21, 2023 09:50
-
-
Save vanushwashere/0ff9c21d628330d2dc42876cd86b072d to your computer and use it in GitHub Desktop.
Overriding DONOTCACHEPAGE constant via Wordpress Filter for 10Web Booster plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('ABSPATH') or die('YOU SHALL NOT PASS!'); | |
/** | |
* Plugin Name: 10Web Booster Force Caching Drop-in | |
* Plugin URI: https://10web.io/page-speed-booster/ | |
* Description: Overrides the DONOTCACHEPAGE constant to force caching. | |
* Author: 10Web - Website speed optimization team | |
* Author URI: https://10web.io/ | |
*/ | |
add_filter('two_override_donotcachepage', '__return_true', PHP_INT_MAX); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works with 10web Booster higher than 2.25.* version