• Resolved harmonyous

    (@harmonyous)


    I just logged in to cloudflare today and I was prompted with a “<strong class=””>Page Rules are deprecated. You should consider alternative?Rules?options due to their enhanced configurability. Refer to?the migration guide?for details.”.

    I guess this plugin needs to be updated ASAP.

    Since that might take some time, would adding the cache everything rule in the “Cache Rules” page would have the same effect?

Viewing 15 replies - 1 through 15 (of 24 total)
  • Following… we just setup a new site with this and have set things up successfully using Cache Rules. It’s a pretty sweet setup actually!!! But we set them up manually, the plugin didn’t do it via the API.

    Yes, wondering the same thing – Whether the replacement rules system is going to work with the plugin.

    For isaumya to refer to, this is the relevant page about the change:

    Page Rules migration guide · Cloudflare Rules docs

    It looks like the new system should still work, but maybe the plugin can’t add them automatically.
    Rob

    Following. Need some updated explanations about this.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi all,
    You can already use the Cache Rule instead of the Page Rule to create and manage your page cache. There is already a detailed guide on this. Please check: https://gist.github.com/isaumya/af10e4855ac83156cc210b7148135fa2

    Thread Starter harmonyous

    (@harmonyous)

    @isaumya tried it and after testing some things, everything seems to be working fine. Thanks.

    But does the plugin do that automatically like it does with the old rules system, or does it have to be done manually?

    And if the plugin doesn’t manage those rules, then what happens when one disables and enables caching in the plugin.. does it turn all those rule off and back on again, or would one have to remove them all and add them again?

    • This reply was modified 6 months, 1 week ago by robaxxx. Reason: spelling
    Plugin Contributor iSaumya

    (@isaumya)

    Hi @robaxxx,
    I completely understand your concern. But unfortunately, cache rules cannot be created as easily like page rules. Cause Cache Rules are just a subset of the Cloudflare Ruleset Engines. So, you need to store the ruleset id, create rule id if not already created and store that rule id making things way more complex.

    Also, as the cache rule can be far more fine-tuned, it’s best to create manually depending on your website requirements. Despite having the cache rule, enable/disable cache inside the plugin settings should work perfectly.

    The only time that you need to delete the cache rule is when you delete the plugin completely from your website.

    robaxxx

    (@robaxxx)

    Ok yep cool.

    I don’t mind setting up rules manually. Just so long as one is able to disable the cache in the plugin if needed and clear it on demand. From what you’re saying, I believe that will be the case.

    Regards
    Rob

    Plugin Contributor iSaumya

    (@isaumya)

    yes creating the rule dynamically doesn’t stop the disable cache feature.

    It seems CloudFlare plans to turn off ‘Page Rules’ before January 6th, 2025.

    I assume that this plugin will eventually pivot to using a new ‘Cache Rules’ API by that point, pivoting away from ‘Page Rules API’?

    Best wishes as always; and thanks again for an amazing plugin.

    @harryfear scroll back a few comments — your answer is there!

    @gwynethllewelyn Actually it doesn’t ??

    Plugin Contributor iSaumya

    (@isaumya)

    Hi,

    Regarding the new cache buster rule. I just updated from the old four Cache rules to your new single rule and deactivated the old page rule.

    All went well, except for one small issue.

    I use Ninja forms, and the contact form wasn’t showing for non-logged in users.

    I managed to fix it by adding this to stop the contact page from being cached:

    URI path does not equal /contact/

    Is this the best fix, or is there a better alternative?

    Plugin Contributor iSaumya

    (@isaumya)

    Yes we are working on an update that will migrate the plugin to using the new Cache Rules. Also Workers mode will be removed as it is no longer needed when using cache rules.

Viewing 15 replies - 1 through 15 (of 24 total)
  • You must be logged in to reply to this topic.