I need clarification about whether SaaS tenant subdomains are considered different zones when purging the cache.
Description
I’m working on a SaaS product, and I’ll be using the Cf API to enable my tenants to purge their cache. My tenant domains will not be custom domains, but rather subdomains of the form…
https://tenant1.saasprovider.com/
https://tenant2.saasprovider.com/
etc.
After reading the docs, it’s unclear if I can use purge_everything on just a subdomain. Or will that actually purge the cache for all tenants?
Furthermore, I am afraid to Purge SaaS tenant hostnames requires an Enterprise plan.
It’d be a bit unusual to clear the cache for your customers hostname(s) while you’re purging it for your own (sub)domain(s).
Then, yes. It’ll purge the cache even on your sub-domains, which are tenants of your SaaS hostname.
May I ask do you see “Purge Lock” option under the “Purge Everything” or “Custom Purge” button on the Dashboard with which you could prevent such things to happen to clear the cache for your customer(s) hostname(s)?
I haven’t tested, might have to wait for another reply or write directly to the Cloudflare Support and ask for such information.
At least on the Enterprise plan yes, we can purge all the assets on a sub-domain:
No, I don’t see any “purge lock”. I haven’t yet signed up as a SaaS provider (although I have a working service on my own domain).
I’m trying to get a handle on the expenses involved. Since I’m bootstrapping this endeavor, an Enterprise plan is not in the budget.
If you’re sure about that, then it answers my question; but it does seem odd that tenant caches can’t be purged independently of the SaaS provider’s cache - even if the tenants are subdomains and not custom domains.