Clear Cache After Posting Comment

by admin

The cache of the page is cleared automatically after the comment is approved of.

comment-approve

You need to open the page which is /wp-admin/edit-comments.php and click on the approve link. Only the cache of the page is cleared.

Note: If the comments are approved automatically, the cache of the post is cleared as well.

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…

Clear Cache for Specific Page
Clear Cache for Specific Page

We occasionally need to clear a page’s cache, but clearing the entire cache is not good for CPU. For this…

Placeholder Image
To Clear Cache After Update

If a post or page is updated, the cache of post or page is cleared.

Ready to get started?

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