How does it work for subdirectories multisite?
-
Hello,
How to use it on multisite please?
which one is preferred? Sub domain or subdirectory please?
thanks
-
Hi @alexliii,
Subdomain is always preferred over subdirectory as you will have multiple caching issues with subdirectory-based sites. But with multisite environment you need to install this plugin separately across each site.Subdomain is always preferred over subdirectory as you will have multiple caching issues with subdirectory-based sites
Thanks for reply. is that because of the three limits of the Cloudflare page rule?
I noted there are two page rules automatically created by this plugin:
https://mysite.net/wp-admin/* Cache Level:?Bypass
https://mysite.net/* Cache Level:?Cache Everything
So, these two rules will also affect the sub-sites with a subdomain? like:
https://subdomain.mysite.net/wp-admin/*
https://subdomain.mysite.net/*
Really expect your reply, thanks.
Hi @alexliii,
I noted there are two page rules automatically created by this plugin
That is totally wrong info. By default this plugin creates only 1 page rule that is the
https://mysite.net/*?Cache Level:?Cache Everything
page rule. That’s it.If and only if you have enabled the
Force cache bypassing for backend with an additional Cloudflare page rule
option, only after that thehttps://mysite.net/wp-admin/*?Cache Level:?Bypass
page rule is created. Screenshot: https://i.imgur.com/DEc8dWt.jpegThis option is DISABLED by default as it is not required to turn it on in order to use the plugin. I will highly recommend you to use the plugin with the default settings that comes out of the box and do not enable other options which you don’t fully understand.
So, these two rules will also affect the sub-sites with a subdomain?
Yes, when you add this plugin on the subdomain site, it will create page rule accordingly for the subdomain site.
Hello,
Yes, exactly. I just did a try-by reset. These two rules were created in two steps, and only one rule is created by default.
But, what I am confused is that, if “Force cache bypassing for backend with an additional Cloudflare page rule” is just what we want, and why you do not suggest enabling this option please? maybe it is out of my knowledge, but I am glad to learn:)
Thanks
what I am confused is that, if “Force cache bypassing for backend with an additional Cloudflare page rule” is just what we want, and why you do not suggest enabling this option please?
for 99.99999% cases you don’t need to enable this option. It is there for just in case for 0.000001% cases where the plugin is able to set the proper
cache-control
header for the backend pages. But as I said I have not need a case where I had to enable this option.Great thanks.
Mark as resolved.
So, these two rules will also affect the sub-sites with a subdomain?
Yes, when you add this plugin on the subdomain site, it will create page rule accordingly for the subdomain site.
Do you mean the plugin will create “Page Rule” on Cloudflare? if yes, I just noted there is limits of THREE page rules on Cloudflare Free Plan.
What if there are more than three sub-sites?
Thanks
Do you mean the plugin will create “Page Rule” on Cloudflare? if yes, I just noted there is limits of THREE page rules on Cloudflare Free Plan.
Yes that is right. The plugin will create page rule for each subdomain. If you need more than 3 page rules, you can either buy more page rules or you can edit one of the subdomain page rule added by this plugin from
https://sub1.example.com/*
-> Cache Everything
tohttps://*.example.com/*
-> Cache Everything
and see if things are working correctly.Thanks.
For now, we are quite hesitant to use subdomains, because Google Considers Subdomains as Separate Standalone Sites, which means we need to do much more. There are lots of articles on the subdomain VS subdirectory domain.
So, would you please let me know whether it is possible to make the cache smooth on subdirectory domain? Any practical settings on subdirectory sites please?
Thanks
would you please let me know whether it is possible to make the cache smooth on subdirectory domain??
No it won’t be smooth. It will be quite hard actually as the system will have no way to know if a path is for one site or another.
Any practical settings on subdirectory sites please?
As i said before I personally will not recommend having sub directory based websites as it have many issues including caching. But the final choice is yours.
- The topic ‘How does it work for subdirectories multisite?’ is closed to new replies.