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

Placeholder Image
Clearing Cache After Deleting Post/Page

When a post or a page is deleted, some cache files are cleared instead of all the cache files being…

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…

Ready to get started?

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