comet-cache icon indicating copy to clipboard operation
comet-cache copied to clipboard

Feature Request: CloudFlare

Open raamdev opened this issue 11 years ago • 5 comments

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).

raamdev avatar Feb 20 '15 03:02 raamdev

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_cloudflare will be necessary if we implement checks for $_SERVER["HTTP_CF_CONNECTING_IP"] in both s2Member and in ZenCache.

raamdev avatar Mar 21 '15 17:03 raamdev

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.

raamdev avatar Mar 24 '15 18:03 raamdev

I'm adding a checklist (↑ above) of things that need to occur in order to achieve the goal.

jaswrks avatar Mar 26 '15 15:03 jaswrks

This is really starting to sound interesting now.

HandyGadget avatar Apr 05 '15 20:04 HandyGadget

Requested here: https://websharks.zendesk.com/agent/tickets/9708 ~ edit by @jaswsinc (this is an internal private ticket link)

kristineds avatar Nov 26 '15 06:11 kristineds