• Resolved katmacau

    (@katmacau)


    Hi. I’ve noticed an issue where it seems hardly any pages are getting cached. I have caching enabled on pages, posts, products and excluded on one custom post type.

    I saw the recent support topic about 0 caching (https://ww.wp.xz.cn/support/topic/cache-files-0-most-of-the-times/). So I checked and made redis disabled. Its an Apache server running php 7.4.

    I’ve cleared the cache. Then in a different browser I navigate through multiple pages in the site to trigger caching. I then look at the cached file list. After visiting 20 pages its sits at around 2 or 3 cached files. Then without making any changes to the site content, I come back and that number is sometimes reduced. It seems like cached files are not being retained.

    What can I check further to see whats going on here?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter katmacau

    (@katmacau)

    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.

    Plugin Support Jair – WPMU DEV Support

    (@wpmudevsupport15)

    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

    Thread Starter katmacau

    (@katmacau)

    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?

    Thread Starter katmacau

    (@katmacau)

    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?

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    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

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    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

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Pages not caching’ is closed to new replies.