• yooreetsa

    (@yooreetsa)


    Hello,

    I’m having trouble with the Cloudflare CDN & your plugin. My site is a web shop, so it is a bit more finicky when it comes to caching dynamic content. This is precisely why I wanted to use this plugin.

    At the very beginning, I set up the 3 free rules on Cloudflare (bypass wp-admin, bypass ajax, and cache everything), which is when my site had stellar results (I’m talking milliseconds to load the entire page) on Pingdom, PageSpeed Insights, and GTMetrix, and anecdotally the site felt the fastest it had ever been to me then. However, the 3 rules were not enough, as my cart and checkout pages obviously acted up, and that’s a dealbreaker. So, I wanted to buy additional rules, but I came across your free plugin and decided to give it a shot. I deleted the 3 rules, as per a support ticket I found on this forum, and then activated your plugin, as well as the Workers part.

    Now when I go to various test speed sites, I get different results. Namely, GTMetrix (whose free server is in Vancouver) still shows the stellar results, but Pingdom is back to being slow (>10s to load the site), and PageSpeed often shows an error accessing the site. I looked a bit further than that and went to Sucuri, which lists various servers, and it only showed the site as accessible via an Atlanta, GA server (that’s likely where my origin server is btw, I’m on DreamHost). As for other servers, it reads: Could not test website from this server. Additionally, it feels slow again for me. This tells me that the USA server is the fastest because the origin server is located there, and the CDN is not working properly across the globe.

    The Cloudflare analytics show that Workers are working and that data is being sent through them. But I’m not seeing any results. Please advise? Thank you in advance!

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    As I can see the worker is working properly on your site and caching the pages as it is supposed to:

    View post on imgur.com

    View post on imgur.com

    View post on imgur.com

    But if your site doesn’t have good traffic on any location, CF will remove the cached content from it’s CDN.

    I’ll suggest you to do the following:
    1. Inside CF Dashboard enabled Smart Tiered Cache
    2. If you can afford, get Cloudflare Cache Reserve
    3. If you have space to add a page rule, add a page rule for https://injectabletechnique.hr/* -> Edge Cache TTL to 1 day or something.

    Try options 1 & 3 and see if you see any difference. The beauty of worker mode is that it can bypass requests when needed by running many complex logics. So, when someone add it’s to card, automatically requests will be bypassed.

    Thread Starter yooreetsa

    (@yooreetsa)

    Hi Saumya,

    Thanks for your response!

    Would using rules (say if I bought additional rules) as opposed to workers also remove the cached content from the CDN if there’s little traffic? I’m asking: is this unique to workers or would it be the same either way?

    I’m just starting out so I don’t expect more than 100-500 visits per day, let alone from various locations. And it makes little sense to use CDN when starting out if they are going to remove my cache unless it’s visited a lot.

    I’ll try out your suggestions and see if anything changes — I’ll let you know!

    Plugin Contributor iSaumya

    (@isaumya)

    Would using rules (say if I bought additional rules) as opposed to workers also remove the cached content from the CDN if there’s little traffic?

    – No if you have eCommerce based site it’s highly recommended to use worker. Beside you have 3 page rules for free just use one of them to set up the edge cache ttl.

    is this unique to workers or would it be the same either way?

    – No it’s not unique to workers. Worker hand handle cache bypass logic much better than page rules.

    And it makes little sense to use CDN when starting out if they are going to remove my cache unless it’s visited a lot.

    – That’s why asked you to try the edge cache ttl page rule to see if that help the cache remain longer in the CDN.

    Thread Starter yooreetsa

    (@yooreetsa)

    Hi Saumya,

    I’ve done 1 & 3, and the site honestly doesn’t seem to perform any better. Do these changes take time to go into effect?

    For the Cache Reserve, how much would that cost? It doesn’t seem like much to me, but I might be wrong. And how much better would it make my site perform?

    Are there any other ways/tips to make the cached site perform better?

    Thank you!

    Plugin Contributor iSaumya

    (@isaumya)

    For the Cache Reserve, how much would that cost? It doesn’t seem like much to me, but I might be wrong. And how much better would it make my site perform?

    – For a smaller traffic site I don’t think it would be more than $5-$7/mo. You can turn it on, see it for a month and then decide if you want to continue.

    Are there any other ways/tips to make the cached site perform better?

    – You can enable the prefetch on link hover and prefetch link in vewport inside the plugin settings, but it sometimes have issues with e-commerce sites. Where hovering on buttons like add to card add items to cart. So, you need to test it thoroughly. But for non-ecommerce site it’s a no brainer.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CDN doesn’t seem to be working’ is closed to new replies.