For some reason, when publishing a new post, the homepage isn’t updated right away with the new post. I can navigate directly to the new post, but it takes 5-10 minutes for that post to show on the homepage.
I enabled logging and see that WP Supercache deletes the cache files right away:
21:56:22 /wp-admin/post.php Clearing cache for post 23903 on post edit.
21:56:22 /wp-admin/post.php Post change: deleting cache files in /var/www/html/wp-content/cache/supercache/www.domain.com/
21:56:22 /wp-admin/post.php rebuild_or_gc: rename to /var/www/html/wp-content/cache/supercache/www.domain.com/index.html.needs-rebuild
21:56:22 /wp-admin/post.php rebuild_or_gc: rename to /var/www/html/wp-content/cache/supercache/www.domain.com/index.html.gz.needs-rebuild
21:56:22 /wp-admin/post.php rebuild_or_gc: deleted /var/www/html/wp-content/cache/supercache/www.domain.com/index.html
21:56:22 /wp-admin/post.php rebuild_or_gc: deleted /var/www/html/wp-content/cache/supercache/www.domain.com/index.html.gz
There are no errors reported, and the timestamp on the index.html and index.html.gz are changed. However, the files are the exact same size as they were before the rebuild, and the new post is not on the page. It’s only after about 5 or 10 minutes that the post will show up on the page.
MySQL query caching is not enabled on the server. I’m not sure where to look next to try to fix this problem. Can anyone point me in the right direction?
- The topic ‘[Plugin: WP Super Cache] Home page not updated immediately after new posts’ is closed to new replies.