• When add/update a new post in wordpress , its take lots of time to publish the post, sometimes its timeout .
    When checked the log, i could see wp-super-cache taking lot of time to clear the cache when updating a post.
    I have disabled the option “Clear all cache files when a post or page is published or updated.” , then its working as expected.
    But I want to clear the page cache when a new post published/updated.
    any methods to improve the speed of add new/update the post ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Maybe set the expiry time to a shorter time so cache files are cleaned up more often? You must have thousands of cache files do you? Or else your server has a really slow disk.

    Thread Starter vikp

    (@vikp)

    Thanks for the reply.
    Yes I have thousands of posts on site, Also I want to clear the cache a post is updated/Added. Any other method to speed up this cache clear process on updating post.
    Server speed is good.

    Thread Starter vikp

    (@vikp)

    Hi Team, Can i clear cache after post updation completed using hook ?

    This code:
    global $cache_path;
    prune_super_cache( $cache_path . ‘supercache/’, true );
    prune_super_cache( $cache_path, true );

    on post_updated hook

    This will work in background, so authors wouldn’t have any feel backend slow when updating post.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Update post is too slow’ is closed to new replies.