• Resolved advwebin

    (@advwebin)


    Hello,

    We have added the new caching rules as per the Github Documentation for serving edge cache. But when selecting the option to serve mobile cache and desktop cache separately, The mobile cache is serving stale cache after a couple of days.

    This does not happen immediately. But after running on it for a couple of days. the posts are displaying from 3 days old cache.

    Where can I share details with you about this?

    1. Is there any benefit in taking cloudflare pro or APO along with this?
    2. Cache by device type, Does this have a compatibility issue?

    thank you for your amazing effort!

    • This topic was modified 2 years, 9 months ago by advwebin.
    • This topic was modified 2 years, 9 months ago by advwebin.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi @advwebin,
    If you are using cache by device type then you need to purge cache for the whole site in order to purge the mobile cache.

    Thread Starter advwebin

    (@advwebin)

    Hi @isaumya

    I did that when I had setup mobile cache and Desktop cache seperate. I had cleared all cache from Cloudflare.
    The issue arises after a few days, the cache on mobile is stale, usually 3 days older. But desktop is in sync with the latest posts.
    I use it for websites which are highly dynamic. The stale cache is a huge issue for such sites.
    Like Entertainment websites.

    This happened on 30th, desktop was working fine but mobile was showing homepage from 27th. Same thing happened on 24th, was seeing content from 21st on mobile.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @advwebin,
    Inside the plugin settings can you please switch to this: https://i.imgur.com/BIhWxuk.jpeg

    After you enable this, purge your whole cache and then on the next day update some post and check if it is still getting stale on the mobile.

    Thread Starter advwebin

    (@advwebin)

    HI @isaumya
    Sure, Will try this.
    This will just clear HTML or purge the entire cache?
    Cause the sites are big and have daily upto 50+ posts published.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    It will purge the entire cache. As I stated earlier, if you are using device based cache, purging just the URL will only purge the cache key of the desktop and not the mobile. So, you need to purge the entire cache or don’t use cache by device and instead use a fully responsive website where you won’t need the cache by device approach.

    Thread Starter advwebin

    (@advwebin)

    Hi @isaumya
    I applied the purge entire cache as you suggested but the mobile cache was still stale.

    The reason for mobile cache is that there are some elements which are specific to mobile and desktop. which do not display properly if the cache is responsive.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @advwebin,
    That seems impossible. As purging everything i.e. purging cache for the entire domain should purge the cache of your whole website. Can you share your website URL, a way to see the problem in action?

    Thread Starter advwebin

    (@advwebin)

    As suggested, I have enabled Full Cache purge in the settings.

    Also attached some screenshots for you of admin and desktop caching also not working.

    https://wormhole.app/MWz0d#t6iZB1c_GmQnSesJX8YK6Q

    • This reply was modified 2 years, 9 months ago by advwebin.
    Thread Starter advwebin

    (@advwebin)

    Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    I’ve looked at your website and I do not see any mismatch between the desktop and mobile cache. All the pages that I have checked shows the same content on mobile and desktop.

    The seatings looks good.

    Thread Starter advwebin

    (@advwebin)

    The cache flush is not working as expected, there is newer content and its not been updated on the cache.

    Cache mismatch couldn’t be documented as it happened a little earlier and I had manually flushed the cache then. Was earlier today.

    Thank you for your support and time.

    • This reply was modified 2 years, 9 months ago by advwebin.
    Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    Please enable the log mode inside the plugin settings and also under the Other tab set log verbosity to HIGH.

    Then update a post, wait for 5 min and check the log. You will see exactly which pages the plugin purged.

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

The topic ‘Stale Cache being served on Mobile’ is closed to new replies.