silverstripe-cloudflare
silverstripe-cloudflare copied to clipboard
VOTE: Multi Domain Support
In some situations (where the "why" is definitely opinionated) people have multiple domains that access the same content e.g
- mycooldomain.com - MAIN SITE
- mycooldomain.net - MASK FOR MAIN SITE
- mycooldomain.org - MASK FOR MAIN SITE
This module currently only supports the domain name it has been accessed from, that means if you access the administration panel via mycooldomain.com
then only cache for the .com
variant will be dynamically purged by this module.
Whilst you would think that in this situation, if you were to only purge the .com then the .net and .org will also reflect the purge as these domains only mask the original. Sadly that's not how CloudFlare works as it strictly caches the URL as a whole.
This issue is a poll to see if it would even be worth adding support for the above scenario where this module would also purge cache for all of your URL variants.
Please up vote one of the below comments
Yes, I or my client has a similar scenario and adding this feature would help relieve a lot of stress for my client and/or myself
No, neither I or my client would benefit from this feature
Given the above references, I believe there may be a thirdparty, multi-domain extension in the pipeline for this module which would be exceptional in the fact that it doesn't have to be implemented within the base code itself