Executing a Function After Clearing All Cache

by admin

You can write your own function that will work after the cache is cleared.

add_action('wpfc_delete_cache', "your_function");

function your_function(){
    //you can run whatever you want
}

Related articles

Clear the Cache by Calling the Function Hook
Clear the Cache by Calling the Function Hook

You can use hooks to clear cache at specific points in the execution of the code. By strategically placing cache…

Placeholder Image
Buffer Callback Filter

You can use the Buffer Callback Filter feature to make any changes to the html source of a page or…

Create a Post Cache by ID Using the Function Hook
Create a Post Cache by ID Using the Function Hook

This function is designed for manually creating page caches.

Ready to get started?

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