Giter Site home page Giter Site logo

typisttech / sunny Goto Github PK

View Code? Open in Web Editor NEW
35.0 5.0 3.0 3.46 MB

Automatically purge Cloudflare cache, including cache everything rules.

Home Page: https://typist.tech/projects/sunny

License: GNU General Public License v2.0

PHP 88.61% JavaScript 7.88% CSS 3.51%
cloudflare wordpress-plugin php cache-control wordpress

sunny's People

Contributors

tangrufus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sunny's Issues

Exclude by post type to trigger a purge

Currently when a new order is created in WooCommerce, since an order is a custom post type, that will trigger a purge in Cloudflare.

Provide an option to be able to exclude certain post types from causing a purge trigger.

Cloudflare API v4

I just want to check that, is this project still maintained?

Cloudflare old API will be deprecated. If this plugin won't receive any update for the new v4 API, all users of the plugin experience problems and unable to connect to the service.

Notice:
CloudFlare is removing support for this API on November 9th, 2016. Please use CloudFlare’s API v4 instead. Documentation is available at api.cloudflare.com
https://www.cloudflare.com/docs/client-api.html

Debug / Support section

  • Ajax form: Verify domain is on Cloudflare
  • Ajax form: Verify Cloudflare email, api key, zone id are correct
  • Ajax form: Verify Cloudflare is enabled for zone(subdomain)

warning in uninstall.php

When uninstalling the plugin via wp-cli:

Warning: in_array() expects parameter 2 to be an array or collection in .../wp-content/plugins/sunny/uninstall.php on line 46

Can Sunny purge the rss feed on publish?

I am still testing this, but it seems like Sunny does not purge the rss feed from CloudFlare's cache when a post is published? I just had a scheduled post automatically get published at it's schedule time, but CloudFlare's cache of my rss feed did not get purged until I manually purged the url of my feed. Just wondering if this is a bug or a feature that needs to be added? Thanks for the great plugin!

Note: This plugin is awesome and I posted an article about it here.
https://collinmbarrett.com/2016/01/07/wordpress-cloudflare-dynamic-cache/

Notification overload and cUrl Debugger error

Detailed description

Problem 1:

When updating a post these notifications "Sunny: Purge initiated." keep poping up and do not get dismissed? They stay and accumulate so at times there are hundreds of these notifications. Seems the purge is not working correctly and then the notification just stays.

Problem 2 (I think it is connected):

When going into the debugger and trying a url with the check status, the result shows an error:


Status: 422 error
Code: http_request_failed
Message: cURL error 6: Could not resolve host: https%3A%2F%2Fbarbaralicious.com
Url: http://https%3A%2F%2Fbarbaralicious.com

I guess that cURL has some kind of problem. Don't fully see what's going on and how I could fix this. Or if it is something that could be fixed in the plugin.

Context

sunny_-_debuggers_ _barbaralicious_ _wordpress

Your environment

  • Version used (e.g. PHP 5.6, HHVM 3): PHP CGI 7.1
  • Hosting on All-Inkl

Thanks for this plugin. The v2 looks good in general and I like the update. But I guess since it's a completely new version it also has some problems?

Cheers,
Chris

Sunny breaks dashboard 'click to toggle' functionality

I've just spotted an issue on two separate projects where I've recently installed Sunny that the 'click to toggle' button used to collapse and expand dashboard meta boxes has stopped working on all admin pages.

I have not found any Javascript or PHP errors related to this, and there is no indication in the AJAX request/response of an issue either.

The problem is distinctly linked to activating/deactivating the Sunny plugin.

Other points of note are:

  • One of the sites has the CloudFlare service disabled (bypass, not pause), the other is actively using it.
  • Other common plugins of note include Toolset (wp-types.com) and iThemes security.

Purge zone

Don't purge urls, just purge everything.
Maybe a separate add-on

Trigger purges

Trigger purges when:

  • switch_theme
  • edit_user_profile_update
  • wp_update_nav_menu
  • edit_comment
  • wp_set_comment_status

Purge Page on Update

In doing some more tweaking/testing, it appears Sunny does not purge pages when they are updated from the CloudFlare cache. If this is wrong, please correct, but it'd be a great feature for a next release. I'm hoping to help contribute, maybe, so I may submit a pull request for this if I have time to work on it.

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.