WordPress page rule to cache everything in /wp-content/ and /wp-includes/

Hello, I am a real novice and would appreciate some help! :slight_smile:

I wanted to add a rule to speed up my website but it looks like Page Rules are deprecated and will be disabled on 1 July. I did some digging in this community and I believe I am supposed to use Cache Rules now.

I read that I should create rules for the the WordPress folders /wp-content/ and /wp-includes/.

This is what I wanted to do:
URI Path contains /wp-content/ OR URI Path contains /wp-includes/.
With Edge TTL and Browser TTL set to 1 month.

Is this okay?

I think the rules are okay, you can go ahead and test it.

Regarding Page Rules migration guide, you can check Page Rules migration guide ยท Cloudflare Rules docs.

1 Like

Thanks, I tried that and nothing bad happened. I should assume it worked. :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.