• I have a problem with wrong content saved every time when preload clear the cache. Home will be cache as random tag page and the cache will seems to keep refreshing itself with new tag content when I keep refreshing the page.

    My server set up are as follow.
    Running docker in AWS ECS with
    – 1 x Nginx Docker
    – 1 x PHP-FPM Docker
    AWS Application loadbalancer
    CloudFlare

    • This topic was modified 2 years, 10 months ago by Chris Sim.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Chris Sim

    (@monkeymon83)

    Hi,

    I have added debug and found this message in the log that might cause my issue.

    08:39:39 29 /food/cheap-dim-sum-high-tea-masa-black-society/ Supercache Late Init: add wp_cache_serve_cache_file to init
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ Supercache Late Loader running on init
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wp_cache_get_cookies_values: return:
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ supercache dir: ABSPATH/wp-content/cache/supercache/avenueone.sg/
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wp_cache_get_cookies_values: return:
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ No wp-cache file exists. Must generate a new one.
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ In WP Cache Phase 2
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ Setting up WordPress actions
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ Created output buffer
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wp_cache_get_cookies_values: return:
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: doing rebuild for ABSPATH/wp-content/cache/supercache/avenueone.sg/
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/349333664627e18905563e0.25235623.tmp
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/522567766627e187d68e757.93532027.tmp
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/1683564641627e18909f28a9.87779669.tmp.gz
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/1627675679627e18c5a0c9f0.87948228.tmp.gz
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/191288022627e17dd18bbd9.49516250.tmp
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/1942407014627e17d2930934.19023558.tmp
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/1319027020627e1909c82008.52279969.tmp.gz
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/364958829627e183fd2c269.47336612.tmp.gz
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/839769830627e181ac7eff9.47579454.tmp
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/2044410080627e18d1bfe145.54651529.tmp
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/1704411487627e186e7290c6.67121112.tmp
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/index-https.html.gz
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/884694794627e1877cc0bc6.52094199.tmp.gz
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/313545131627e189f219a11.17584453.tmp.gz
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/1900893570627e18bb6aadb9.10697323.tmp
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/156039271627e1944a1fee6.66022359.tmp
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/2044410080627e18d1bfe145.54651529.tmp.gz
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/839769830627e181ac7eff9.47579454.tmp.gz
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/1704411487627e186e7290c6.67121112.tmp.gz
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/1900893570627e18bb6aadb9.10697323.tmp.gz
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/1683564641627e18909f28a9.87779669.tmp
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/1627675679627e18c5a0c9f0.87948228.tmp
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/156039271627e1944a1fee6.66022359.tmp.gz
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/364958829627e183fd2c269.47336612.tmp
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/1319027020627e1909c82008.52279969.tmp
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/index-https.html
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/884694794627e1877cc0bc6.52094199.tmp
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/191288022627e17dd18bbd9.49516250.tmp.gz
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/1942407014627e17d2930934.19023558.tmp.gz
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/522567766627e187d68e757.93532027.tmp.gz
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/313545131627e189f219a11.17584453.tmp
    08:39:40 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpcache_do_rebuild: base file found: ABSPATH/wp-content/cache/supercache/avenueone.sg/349333664627e18905563e0.25235623.tmp.gz
    16:39:41 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpsc_is_caching_user_disabled: false
    16:39:41 29 /food/cheap-dim-sum-high-tea-masa-black-society/ Output buffer callback
    16:39:41 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wp_cache_get_cookies_values: return:
    16:39:41 29 /food/cheap-dim-sum-high-tea-masa-black-society/ Anonymous user detected. Only creating Supercache file.
    16:39:41 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wpsc_is_caching_user_disabled: false
    16:39:41 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wp_cache_get_cookies_values: return:
    16:39:41 29 /food/cheap-dim-sum-high-tea-masa-black-society/ Gzipping buffer.
    16:39:41 29 /food/cheap-dim-sum-high-tea-masa-black-society/ Writing non-gzipped buffer to supercache file.
    16:39:41 29 /food/cheap-dim-sum-high-tea-masa-black-society/ Writing gzipped buffer to supercache file.
    16:39:41 29 /food/cheap-dim-sum-high-tea-masa-black-society/ Warning! Not writing another page to front page cache.
    16:39:41 29 /food/cheap-dim-sum-high-tea-masa-black-society/ wp_cache_shutdown_callback: collecting meta data.
    16:39:41 29 /food/cheap-dim-sum-high-tea-masa-black-society/ Did not write meta file: meta-wp-cache-78090cbd5025d58ae8d578c23f20cfc7.php

    I enabled late init to see this in debug. The warning message caught my eye. “Warning! Not writing another page to front page cache.”. This error is caused by?

    I’m not sure what causes that error. It’s an extremely rare bug, but an annoying one which is why I added the “front page checks” settings which caught it.

    It is something to do with how your hosting is setup, but I don’t know what is the cause, sorry.

    I’ve also faced similar issue on two of my websites. Wrong content cached for homepage. I was getting random author archives on homepage. On that site I was using Redirection plugin, and there were just too many regex based redirections. I disabled the plugin, haven’t faced the issue since.

    On the other site, I see search results being cached for homepage, don’t know how it could happen. The homepage had this heading: “Search results > captcha”. When I clear cache and do a search for “captcha” I don’t face any such issue.

    @donncha
    Maybe cache the homepage only when URL value is exactly same as home URL and there is no GET/Post any extra headers or anything. The issue is probably caused by bad bots, making strange requests all the time.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Home page cached wrongly’ is closed to new replies.