WooCommerce and Divi builder - Page Rules

Hello, (rewriting to better showcase the issue)

I’m trying to setup the Page Rules for a WooCommerce eshop using Divi builder on the Pro Plan. The goal is to get better load times at any time (excluding the case of an attack). I also setup a new decent dedicated server just for this reason.

I tried caching all of the image file formats of the /Uploads folder of WordPress with Cloudflare. The rest of the website was cached through WP Super Cache plugin.

The result was a total mess.

I know i can’t just “Cache Everything” as i’m afraid this would cause issues to Divi’s Javascript.

How have you overcome the issue? What am i missing? I’ve read the documentation extensively, i optimized the PHP Settings in cooperation with the hosting provider and i made sure it’s not a theme issue in cooperation with Divi’s support.

What’s the best approach here in order to use both Cloudflare and a Cache plugin?

Cloudflare caches static files by default, you don’t need a Page Rule for that.

What do you mean?

Since you’re on a Pro Plan, you should activate APO for WordPress, and remove any cache-related rules. APO will cache all your content, and even cache HTML at the edge for better performance.

1 Like

Thank you for your reply.

I certainly do not feel like it is caching anything. In fact, when i am activating the Page rules, the eshop becomes slower…

Some parts of the page load extremely fast (in like less than 2 sec), other parts like the images take ages (even 10 sec). If i deactivate the Page Rules, eshop loads in 2-3 sec (still doesn’t have much traffic).

Oh i did activate the APO but it seems to me it does not help so i deactivated it. I even let the website run for a few days with APO activated but still no good results. I read somewhere that sometimes APO does not work well with Caching plugins.

Additionally, as mentioned, i have already read the documentation carefully.

So basically this is why i’m kindly asking the community to let me know what Page Rule do you use on a WooCommerce eshop with (let’s make it broader) any Page Builder and any caching plugin in order to increase the loading speed.

Page Rules are a legacy tool that is being replaced by a set of new Cloudflare Rules: Cache Rules, Redirect Rules, Configuration Rules being the ones most likely to be used to replace the Page Rules. Page Rules are about to be deprecated as explained here: The future of Page Rules

Using Page Rules to configure an ecommerce website is especially challenging, since Page Rules cannot differentiate between logged in and logged out users, unless you’re on a Business Plan or higher.

You should instead familiarized yourself with the new Rules, especially Cache Rules, which can be set to bypass cache when a WordPress logged-in cookie is present.

I checked them, read about them but the “Beta” label kept me away (don’t tend to try anything in Beta).

Thank you( :smile: !!) for pointing it out as i wouldn’t be able to find it out otherwise. Older posts and guides mentioned Page Rules and that’s why i went there.

I’ll read again all the documentation on the subject.

Do you have any guides/tutorials/resources/etc other than the documentation to suggest? I’ll most certainly read them. My concern is the cart and which rules will need to be applied to make it work flawlessly.

Sorry, I don’t. It’s complicated to follow a guide for an WordPress website when it comes to caching, as each WP installation is a collection of different plugins. You can wait until someone with experience using your page builder and caching plugin comes along, but my experience is that this almost never happens.

The most efficient way to obtain this kind of advice from this community is to objectively describe the issues you’re facing, as well as the relevant configuration (starting with domain name). My suggestion is that you remove your Page Rules, re-enable APO and bring to this community specific issues your site faces when APO is enabled.

Your original observations are rather vague to outsiders, as no one knows what kind of Cache-Control header and cookies your site may be returning for any given URL. If you don’t want to share your domain, that’s fine, but please share screenshots of headers, cookies etc., otherwise it becomes almost impossible to troubleshoot APO, Cache Rules, Page Rules etc.

1 Like