• Resolved mf01

    (@mf01)


    Hello!

    I recently made some changes to the theme (such as color scheme and font). I want to purge cache so that readers can see the change. I use Cloudflare for CDN, which warns “do not to purge everything” unless I really need to, because it will affect the speed of my website. Cloudflare instead recommends purging cache for every single page.

    Does anyone know either:

    1. way to purge cache only for theme, or
    2. if it’s okay to “purge cache everything?”

    Thank you for your help!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • I use Cloudflare for CDN, which warns “do not to purge everything” unless I really need to,

    Do you “really need to” see your theme changes on your website? ??

    Thread Starter mf01

    (@mf01)

    Thank you for your reply.

    It’s not really a question whether or not I really want to see the change. My question is, if I am not technically savvy enough, do I need to give up minor changes to my website to avoid the site slow down? Or, are there ways to purge cache only for the Theme? Or, maybe it’s okay to “purge everything,” as it’s possible that Cloudflare is exaggerating the impact? I have no idea because I have never done that. Just wanted some advice.

    Or, maybe it’s okay to “purge everything,” as it’s possible that Cloudflare is exaggerating the impact?

    I wouldn’t say Cloudflare is exaggerating the impact per se.

    But Cloudflare has millions of users with different use cases and performance requirements. Some have only a handful of pages so they can easily purge the cache case page-by-page. Some have thousands or even millions of pages that make page-by-page cashing unfeasible. Some have blogs with barely any visitors and a temporary drop in site speed lasting a few seconds has no meaningful impact. Some Cloudflare customers have critical API endpoints being used by millions of other websites: they expect millisecond response time — and such a temporary drop in performance — even for a few seconds, can be detrimental.

    So you always have to contextualize any advice to your specific circumstances.

    As to Cloudflare’s warning about purging all cache affecting performance, all this means is that after the cache is cleared, the next time someone visits your site, Cloudflare will have to visit your hosting server to fetch your site’s files before serving them to the visitor. This may slow down the site for under a second for this particular visitor (unless you have a really crappy hosting provider, in which case it could take a second or two extra). But after this first visit, Cloudflare will cache the assets again, and you’re back to where you were before you purged the cache.

    Whether this few milliseconds-to-seconds of additional delay for the first visitor (or few visitors) to your site after purging the cache will be detrimental to your site and business or not — you are the best judge.

    Good luck!

    Thread Starter mf01

    (@mf01)

    Thank you for your reply and kind words. I appreciate your insights!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to purge cache to reflect change in theme’ is closed to new replies.