typisttech / sunny Goto Github PK
View Code? Open in Web Editor NEWAutomatically purge Cloudflare cache, including cache everything rules.
Home Page: https://typist.tech/projects/sunny
License: GNU General Public License v2.0
Automatically purge Cloudflare cache, including cache everything rules.
Home Page: https://typist.tech/projects/sunny
License: GNU General Public License v2.0
Link to blog post:
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.
Purge Yoast SEO XML sitemap urls also
ref:
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
Clone from https://github.com/TypistTech/wp-cloudflare-guard v0.2.0
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
cache-control: private
for public-facing logged-in page viewsnonce
security issueshttps://guides.wp-bullet.com/cloudflare-cache-wordpress-posts-and-pages-guide/
Ajax form: Given a post url, show all urls to be purged
master
branch production code to GitHub nightly
branch (travis-ci/dpl#616)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/
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.
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.
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
ref: #7
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:
Don't purge urls, just purge everything.
Maybe a separate add-on
Trigger purges when:
switch_theme
edit_user_profile_update
wp_update_nav_menu
edit_comment
wp_set_comment_status
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.