Skip to content

Instantly share code, notes, and snippets.

@vanushwashere
Last active November 21, 2023 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanushwashere/0ff9c21d628330d2dc42876cd86b072d to your computer and use it in GitHub Desktop.
Save vanushwashere/0ff9c21d628330d2dc42876cd86b072d to your computer and use it in GitHub Desktop.
Overriding DONOTCACHEPAGE constant via Wordpress Filter for 10Web Booster plugin
<?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);
@vanushwashere
Copy link
Author

Works with 10web Booster higher than 2.25.* version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment