Giter Club home page Giter Club logo

cloudflare-craft-plugin's Introduction

Cloudflare Craft Plugin

Automatically purge Cloudflare URLs when specific Assets and Entries are edited. Optionally clear the whole thing from the Craft control panel as well.

Installation and Setup

Drop the cloudflare folder in your craft/plugins directory, then visit Settings โ†’ Plugins and install the Cloudflare plugin.

Add your Cloudflare API key and account email address, then choose "Verify Credentials." This will update the Cloudflare Zone dropdown so you can lastly choose the appropriate zone for your site.

Be sure to test, because testing is always a fabulous idea.

Troubleshooting

If a given cache doesn't seem to be cleared, make sure devMode is enabled and check /craft/storage/runtime/logs/cloudflare.log. You should find brief traces that identify cache-clearing attempts and summarize responses from the Cloudflare API. Please be prepared to share these logs if you're looking for help.

Submit an issue here or email [email protected] if you run into any issues, and I'll make my best effort to respond in a timely fashion. I appreciate any feedback at all, and appreciate your patience since this is a free-time project.

Limitations

  • Doesn't know or care what Cloudflare is caching, just tries clearing URLs in update+delete conditions.
  • Some features are rough: purging individual URLs (from plugin settings), and setting up cache-breaking rules (if you can figure out how).
  • May not be suitable for sizeable bulk operations; if you replace or delete a massive number of files, it could result in the same number of hits to the Cloudflare API.

Miscellanea

The plugin's icon uses the Cloudflare logo mark found on this page and is the property of Cloudflare.

cloudflare-craft-plugin's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.