An interesting observation. It was viewing pages to trigger their caching was able to get up to 15 files cached. but then it showed this message:
Hummingbird has halted page caching to prevent any issues while asset optimization is in progress. Page caching will resume automatically when asset optimization is complete.
When I refreshed the page it then went back to only 1 file cached. Caching was working on the site until plugin updates were made recently.
Hi @katmacau,
I hope you are doing well!
Hummingbird has halted page caching to prevent any issues while asset optimization is in progress. Page caching will resume automatically when asset optimization is complete.
This message is coming from Hummingbird->Asset Optimization and a normal behavior to make sure caching optimized assets.
https://wpmudev.com/docs/wpmu-dev-plugins/hummingbird/#asset-optimization
Please check if the number of assets are increasing on your Hummingbird->Asset Optimization section, your theme or plugins might be creating dynamic assets. If that is the case I suggest to check themes and plugins and set them to serve assets as statically, then run Recheck files and run Asset Optimization again.
If that does not help or in case you could not find the root cause, you can also deactivate Hummingbird->Asset Optimization and check if it helps.
Kind regards,
Zafer
Hi Zafer
It was looking promising this morning withn 30+ files cached. But then this afternoon it dropped back to 5 without and pages edited or the cache being flushed.
Can you elaborate on serving assets dynamically? What should I be looking for there?
Hi Zafer
I think I might have identified a potential issue with the browser caching rules. If you look at a page that is not cached you get this header data:
cache-control: no-store, no-cache, must-revalidate
content-type: text/html; charset=UTF-8
date: Fri, 29 Jul 2022 04:08:53 GMT
expires: Thu, 19 Nov 1981 08:52:00 GMT
pragma: no-cache
server: LiteSpeed
vary: Accept-Encoding,User-Agent
Then if you look at the page when the cache has worked you get:
alt-svc: h3=":443"; ma=2592000
cache-control: max-age=3600, must-revalidate
content-type: text/html; charset=UTF-8
date: Fri, 29 Jul 2022 04:10:32 GMT
hummingbird-cache: Served
server: LiteSpeed
vary: Accept-Encoding,User-Agent
When you look at hummingbird browser cache rules it is saying that caching is enabled. I also did a reset of the browser cache rules and copied the litespeed rules back into the htacess file. Is it possible cache rules are the issue?
Hi @katmacau
Thank you for the update.
It should not be related to the browser cache.
Can you please try the solution shared here? https://ww.wp.xz.cn/support/topic/cache-files-0-most-of-the-times/#post-15864127
Let us know the result you got.
Best Regards
Patrick Freitas
Hello @katmacau ,
We haven’t heard from you for a while now, so it looks like you don’t need our assistance anymore.
Feel free to re-open this ticket if needed.
Kind regards
Kasia