• Resolved Rafael

    (@maniackbr)


    Hello how are you?

    Can you help me? I would like that every time we update a publication, or make a new post, it forces a general cleaning of the Cloudflare cache. It’s possible?

    I know it is not recommended, but for us it is very necessary.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter Rafael

    (@maniackbr)

    Other question; In my cpanel i create one cron to clear all my cache at a certain time. Is he with the correct command? For example:

    wget -O /dev/null https://exempl.com?swcfpc=1&swcfpc-purge-all=1&swcfpc-sec-key=… > /dev/null 2>&1

    You can help me?

    Plugin Contributor iSaumya

    (@isaumya)

    I would like that every time we update a publication, or make a new post, it forces a general cleaning of the Cloudflare cache. It’s possible?

    It’s already there: https://i.imgur.com/PH9Ej5o.png

    In my cpanel i create one cron to clear all my cache at a certain time. Is he with the correct command?

    – Is it not working?

    Thread Starter Rafael

    (@maniackbr)

    It didn’t work for me here. I have to manually click on each publication, on the button to clear the general cache.

    About the cron, it was just to check if it is configured correctly, is that so?

    Thread Starter Rafael

    (@maniackbr)

    Just a fix; it is apparently working on the desktop version, but not on the mobile version of the “Newspapper by tagdiv” theme.

    Plugin Contributor iSaumya

    (@isaumya)

    It didn’t work for me here. I have to manually click on each publication, on the button to clear the general cache.

    – Huh! that is super wired. You should check the logs created by plugin to see whats going on. You can also turn the log verbosity to High.

    About the cron, it was just to check if it is configured correctly, is that so?

    – Seems to be ok.

    Just a fix; it is apparently working on the desktop version, but not on the mobile version of the “Newspapper by tagdiv” theme.

    – Sorry didn’t get your question.

    Thread Starter Rafael

    (@maniackbr)

    I was able to identify this problem on mobile, through Google’s own pagespeed. It does not show the last publication we made in the mobile version, only in the desktop version.

    On mobile it only appears if I manually click on ‘purge whole cache’ in the menu.

    Thread Starter Rafael

    (@maniackbr)

    You can see these prints, with the difference of the highlighted images; https://imgur.com/a/bAsIOHM

    Plugin Contributor iSaumya

    (@isaumya)

    The plugin does not have any device based cache system. As standing in 2021, almost all sites are responsive and does not have a separate mobile version. But if you want a device based caching, then, you need to use the worker mode and overwrite the default worker script slightly. Let me know if you are using the worker mode, I can show you the extra snippet of code that you need to add.

    You can also check the FAQ tab inside the plugin settings to see how to overwrite the default worker code.

    Thread Starter Rafael

    (@maniackbr)

    I can activate worker mode, you send me the code please?

    Plugin Contributor iSaumya

    (@isaumya)

    You can check out this worker template: https://pastebin.com/NfZwpM03

    You can also use a diff tool to check the code difference to understand what it does.

    Also checkout the Advanced Section under the FAQ tab in the plugin settings to see how to overwrite the default worker code.

    Few important things to note:

    • If you are using the above worker code for device-based caching, you have to disable the Fallback Cache in the plugin as the fallback cache does not support device based caching.
    • If you are using the option “Purge HTML Pages Only” then you need to turn off that option as well. Becuse when using the device based caching, you need to purge the whole cache, just purging HTML pages won’t work.
    Thread Starter Rafael

    (@maniackbr)

    That’s work for me! Thank you soo much Saumya. I hope you and your family are well and healthy.

    Plugin Contributor iSaumya

    (@isaumya)

    Thanks, @maniackbr. 🙏
    Do share a review in the review section.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Clear All Cache’ is closed to new replies.