• Resolved terry777

    (@terry777)


    I have had this issue for some time. It used to work, but now it doesn’t.
    First, I have it set to not cache for logged-in users, so that I can see the updates immediately by using Preview. However, because I test on different devices, I need to be able to force it to reload for everyone after I update. I used to be able to manually Purge All Caches (on the device I’m using to modify the pages), and it would work, so that other devices would re-load the pages, but now it doesn’t. Sometimes after awhile, it purges, but it can be hours. Sometimes, not at all. I’m hoping some of the settings just need tweaking, but I have no idea which, at this point.
    Wordpress 5.6, Divi theme 4.7.7, php 7.3.25
    Also, the options at the top of the page are Purge All Caches, Purge Current Page, Purge Modules –> Page Cache: All, Purge Modules –> Page Cache: Current Page. What is the difference between the first two and the last two? Is there documentation on this?

    This slows my development considerably and seems to happen on all the sites I’m maintaining.
    Thanks.

    • This topic was modified 4 years, 2 months ago by terry777.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @terry777

    Thank you for your inquiry and I am happy to assist you with this.
    Can you please share what kind of changes are you making on the website. Are those just simple Post/pages updates or you are changing some CSS/JS?
    If the case is that you update the page/post, once updated, the cache should be cleared. This is being handled by the option Performance>Page Cache>Purge Policy where you can specify when and what should be purged after the content is updated.
    Once the page is purged, it needs to be reloaded, sometimes hard reload is needed so it can fetch a new page and create a cached page which will be used then for all other devices.
    Purge Modules>Page Cache: All – This purges all cached pages.
    Purge Modules>Page Cache: current page – this option purges the cache for only the page you are currently on leaving other pages cached.
    I hope this helps!
    Thanks!

    Thread Starter terry777

    (@terry777)

    Hi @vmarko, Thanks for the prompt reply!

    I am using the Divi Theme, and right now I’m using the Divi Builder to modify some pages. But I’ve had the same issue on other sites, with other themes.

    What do you mean to reload vs hard reload? I use the circular arrow next to the address box to reload.

    So, when I Purge Modules > Page Cache: All, this purges not just for me but for all users?

    So, what I usually do, is after I update the page, saving the changes, I hit the Performance > Purge Current page, or Performance > Purge Modules > Page Cache, (are these equivalent?), then I go to another tab in my browser where I have the page displayed and hit the reload button. On my desktop computer, it shows the updated version, but when I check other devices, and reload the page, no change.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @terry777

    When you edit the theme CSS files for example (Styling), and if the CSS file name is not changed the browser will still think that it’s the same CSS file and it will not show changes unless you are logged in. This is because of the Browser Cache settings and the fact that the file is being cached in the browser. So for example, if you enabled the Cache-control – 1 year the file will be cached in the browser for one year. When the file is changed and the name of the file is still the same, the browser checks the file and as it can see that the file is the same it will serve the same cached file.
    In this case, you can use the option ” Prevent caching of objects after settings change ” in Performance>Browser Cache>CSS&JS which will add the random query string which you can update every time you make any changes to CSS or JS. something like ?xNNNNN
    This will ensure that every time the file is updated and you Update media query string, the latest file is being fetched by the browser and served to the visitors.
    I hope this helps!
    Thanks!

    Thread Starter terry777

    (@terry777)

    I’m not directly editing the css in this case, but I’m using the Divi Visual Builder, and I don’t know what gets updated when I change a setting on an object.

    It’s weird to me that caching wasn’t developed to recognize when a file’s last modified date changed, rather than the name of the file. Admittedly, I know as little about caching as I can get away with.

    When you say “which you can update every time you make any changes to CSS or JS” do you mean that I would have to go in and change the query string each time, or that the plugin does that for me, because that would be ridiculous when I’m making changes then checking them, and repeating that process numerous times.

    I tried it, and it doesn’t seem to help. When I make a change using my desktop, then check the change on my tablet, I must be able to see the changes immediately after refresh. Sometimes I’m working with a client and need to show them the changes as I make them. If the caching prevents that, it’s frustrating and embarrassing, to say the least.

    You didn’t tell me the difference between reload and hard reload.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Force Purge after update’ is closed to new replies.