How to Disable Clear Cache Hook System

How to Disable Clear Cache Hook System

by admin

Clear Cache Hook System is a way for one piece of code to clear cache.

Thanks to this hook system, many plugins and themes can work in harmony with WP Fastest Cache. Plugins and themes can clear the entire cache using this hook system when the cache needs to be cleared.

However, sometimes any plugin or theme can unnecessarily clear the cache continuously and this causes a lot of CPU usage. You can turn the Clear Cache Hook system off as below and have the cache serve only via php.

You need to add the following lines after <?php which exists at the top of wp-config.php file.

define("WPFC_DISABLE_HOOK_CLEAR_ALL_CACHE", true);

Related articles

Cache Url with Yandex Click ID Parameters QueryString
Cache Url with Yandex Click ID Parameters QueryString

If a url contains a query string, the url is not served via cache but the situation is different for…

Clear Cache Link on the Toolbar
Clear Cache Link on the Toolbar

One of the ways to clear cache is clicking on the link which exists on the admin toolbar. By default,…

Placeholder Image
Clear Cache After Activate/Deactivate a Plugin

When you activate or deactivate a plugin, you might ask for the entire cache to be cleared.

Ready to get started?

Purchase your first license and see why 1,500,000+ websites globally around the world trust us.