Feature Request: CloudFlare
CloudFlare is not like most CDNs (e.g., Amazon CloudFront or MaxCDN). CloudFlare requires that you modify your domain's DNS to point to CloudFlare name servers. This means that when a request to your site comes in, it actually gets redirected to CloudFlare's server, where they serve a cached version of the page (cached on CloudFlare's servers) to your visitor.
In other words, with CloudFlare, there is nothing for a WordPress caching plugin like Quick Cache to actually do with CloudFlare.
That said, it is possible to use the CloudFlare API to modify settings on your CloudFlare account remotely, e.g., from within Quick Cache itself. It would be nice if Quick Cache allowed a site owner who was using CloudFlare to plug in their API key and be able to change various CloudFlare settings from right within Quick Cache.
See also: https://www.cloudflare.com/docs/client-api.html
Note: This issue is related to a Quick Cache CloudFlare Compatibility issue that is already open (#22).
What Needs to Happen Here?
- [ ] Add new config. panel below Static CDN Filters titled, “Cloudflare Integration (Static CDN Management)”
- [x] Review the Cloudflare service and prepare a staging server for extensive testing.
- [ ] Review the Cloudflare API and determine what is possible.
- [ ] Implement features outlined by @raamdev here in private chat. See: https://websharks.slack.com/archives/zencache/p1427241521000103
- [ ] Update note at the bottom of this KB Article to remove the reference to this pending feature request (once this feature is added).
Using CloudFlare results in all requests to ZenCache looking like they're coming from the same IP address.
@jaswsinc writes (in websharks/s2member-kb#160)...
If you're running the Cloudflare WordPress plugin this should not be an issue, based on this code that I find the WordPress plugin for Cloudflare.
Based on the code that I just reviewed, I don't think
mod_cloudflarewill be necessary if we implement checks for$_SERVER["HTTP_CF_CONNECTING_IP"]in both s2Member and in ZenCache.
Referencing some internal discussion where we agreed to move forward with adding integration with CloudFlare's API to allow controling CloudFlare settings from inside ZenCache.
Adding this to the Future Release milestone.
I'm adding a checklist (↑ above) of things that need to occur in order to achieve the goal.
This is really starting to sound interesting now.
Requested here: https://websharks.zendesk.com/agent/tickets/9708 ~ edit by @jaswsinc (this is an internal private ticket link)