Crawler Log: Says page cached / Debug Log: says no-cache. Page is ‘miss’
-
Hello,
I’m hoping you can help. I’ve been testing for a while now trying to figure out where the culprit is.
My problem? The crawler will run through the sitemap, but it won’t create a ‘hit’ on the pages it crawled. At first load it’s a ‘miss’ but if I reload the page it will then say ‘hit’. So the Litespeed Cache works, just not with the crawler. I’ve enabled logs and found one line saying this: forced no cache [reason] DONOTCACHEPAGE const. So I added to my functions.php file: add_filter( ‘litespeed_const_DONOTCACHEPAGE’, ‘__return_false’ );. The that line went away in the log, but made no change otherwise. In the logs (debug and crawler.log) I cannot find anything else saying why it won’t cache when crawling.
The logs (I cleared all logs + cache, ran the crawler then downloaded the logs right away so they should be as close as possible to only when the crawler ran):
crawler.log: https://pastebin.com/Ea7AgHLy
debug.log: https://pastebin.com/ZZvYDMyUThe weird part (to me)?
The crawler log will say this: “X-LiteSpeed-Cache-Control: public,max-age=2592000”
The debug log will say this: “X-LiteSpeed-Cache-Control: no-cache”Is there any reason you could think of why the crawler will say there is caching happening when it really isn’t?
Some things I have tried:
- I disabled all caching through Cloudflare, so it now says “DYNAMIC”. But then,
- I enabled QUIC.cloud CDN and it is fully functional, replacing Cloudflare (using Cloudflare for DNS only)
- I tried different presets in Litespeed (I have got “Basic” to work a few times but as soon as I change something in Litespeed settings, the same issue re-happens)
- I disabled most of my plugins (definitely anything that ‘could’ mess with caching)
- Changed crawler “Delay” and “Timeout” to different times
Maybe there is something in the log that you can see that I am missing? I honestly don’t really know too much about what I am looking at so maybe you’ll know because you know what it’s supposed to look like.
Thank you for your time it’s much appreciated.
- The topic ‘Crawler Log: Says page cached / Debug Log: says no-cache. Page is ‘miss’’ is closed to new replies.