This API has been deprecated in favor of API v4, available at https://api.cloudflare.com
]]>Does the plugin handle custom post types? I cant seem to get it to work on a basic install with one custom post type.
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>Hi Bryan,
First – thanks for the great plugin.
Second – Are their any plans to update the plugin to use v4 of the CloudFlare API? It’s currently hitting the V1 endpoint, which is incompatible with CloudFlare enterprise accounts.
I was hoping that simply updating the value of $ccpurge_endpoint
in ccpurge.class.php
would do the trick, but apparently the v1 and v4 endpoints use a different syntax for purging individual assets from the cache.
When hitting the V1 endpoint with debugging enabled in the plugin, the following is logged:
Automatic Purge URL Cache for: https://redacted.com/secret/ Error: Invalid zone
The Purge Entire Cache button still works.
V1 Docs: https://www.cloudflare.com/docs/client-api.html
V4 Docs: https://api.cloudflare.com
Let me know if I can provide any more information. Happy to assist in any way possible.
Best,
Gabe
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>Hi Bryan,
First – thanks for the great plugin.
Second – Are their any plans to update the plugin to use v4 of the CloudFlare API? It’s currently hitting the V1 endpoint, which is incompatible with CloudFlare enterprise accounts.
I was hoping that simply updating the value of $ccpurge_endpoint
in ccpurge.class.php
would do the trick, but apparently the v1 and v4 endpoints use a different syntax for purging individual assets from the cache.
When hitting the V1 endpoint with debugging enabled in the plugin, the following is logged:
Automatic Purge URL Cache for: https://redacted.com/secret/ Error: Invalid zone
The Purge Entire Cache button still works.
V1 Docs: https://www.cloudflare.com/docs/client-api.html
V4 Docs: https://api.cloudflare.com
Let me know if I can provide any more information. Happy to assist in any way possible.
Best,
Gabe
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>dupe
]]>When a post is updated/created this plugin purges the homepage and the post itself from the Cloudflare cache.
What I found surprising, and what I really want, is to the automatically pure the URL saved in the “Purge URL” field as well. This url only seems to be purged when the blue “Purge URL” button is clicked.
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>When I try to edit a post, I get a fatal error, and the page fails to reload.
The error occurs when this plugin tries to call the cloudflare api, “WORDPRESS ERROR : sslread() return error -9806”. I’m not worried about that error, instead I think the error handling in this plugin can be improved.
Here’s what I see in debug.log:
PHP Fatal error: Cannot use object of type WP_Error as array in wp-content/plugins/cloudflare-cache-purge/lib/ccpurge.class.php on line 95
And the relevant code, with some comments added from me:
function make_api_request($api_method, $extra_post_variables = null){
//REMOVED FOR READABILITY
if( is_wp_error( $results ) ){
ccpurge_transaction_logging(print_r($results->get_error_message(), true), 'Wordpress Error');
//seems like we want a return statement here, or better detection in the next if statement when the $results object doesn't have a 'response' key
}
if($results['response']['code'] != '200'){
ccpurge_transaction_logging(print_r($results, true), 'error');
}
return json_decode($results['body']);
}
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>My site is set up so that the home page and the blog page are two different pages- foo.com (front_page.php) and foo.com/blog (home.php). The plugin doesn’t seem to be able to handle this- it will only purge my home page, and not the blog page.
It would be nice for the plugin to handle this- ideally automatically, but perhaps an advanced option to specify the blog home url to be purged on post update. Or is there a hook somewhere I can use to set this up myself?
Thanks!
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>Good morning!
Author URI: https://www.fiftyandfifty.org/
is not a standard readme header, it shows on your plugin page:
https://www.ads-software.com/plugins/cloudflare-cache-purge/
Please remove that line.
]]>Looks like there is a conflict between the plugin and the Loma theme:
https://support.daffyhazan.com/docs/loma/
Specifically post options such as sidebar position and enabling/disabling reviews doesn’t appear to save when the plugin is active. Disabling the plugin immediately allows it to save as expected. Nothing of note appears to be logged in the browser console or php error log unfortunately.
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>Are posts purged from Cloudflare when comments are posted?
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>Hello,
I love your plugin, but almost every time I try to post a new article or update a post, I get this error message:
{“success”:”false”,”error”:{“message”:”WordPress Error – {}”}}
If I keep trying, after 3-4 tries WordPress eventually publish the post… But this is very annoying.
There is a way to fix this?
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>Hello,
I love your plugin, but almost every time I try to post a new article or update a post, I get this error message:
{“success”:”false”,”error”:{“message”:”Wordpress Error – {}”}}
If I keep trying, after 3-4 tries WordPress eventually publish the post… But this is very annoying.
There is a way to fix this?
Thank you very much for your help and for your work!
Andy
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>Looks to have stopped working, although the plugin reports API:Sucess the cache is not purged. Going directly into CloudFlares control panel and purging the cache works.
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>Hello,
I’m receiving 4 PHP Notice’s:
PHP Notice: Undefined property: stdClass::$fpurge_ts in /plugins/cloudflare-cache-purge/lib/ccpurge.class.php on line 127
PHP Notice: Undefined property: stdClass::$attributes in /plugins/cloudflare-cache-purge/lib/ccpurge.class.php on line 127
PHP Notice: Undefined property: stdClass::$fpurge_ts in /plugins/cloudflare-cache-purge/lib/ccpurge.class.php on line 127
PHP Notice: Undefined property: stdClass::$attributes in /plugins/cloudflare-cache-purge/lib/ccpurge.class.php on line 127
Should I be worried?
Thanks,
FG
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>Multisite setup in sub domains (not folders)
Per Cloudflare for their own plugin the credentials page is almost identical. In a support thread and by their docs you do not put sub domains in the box, just the tld. Is this true of this plugin as well?
thx
stu
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>Feature request:
An option to clear the cache when adding, updating plugins and when updating WordPress.
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>There must be an option to turn off logging.
Custom post types are used in logging, a separate table is not used. Well, simple and intelligent.
But, I have a permalink structure as example.com/%post_id% (example.com/12345) This post id is increasing faster because of custom post type used in logging. For a small blog, this means one more digit in the url:)
So, at least, there must be an option to turn off logging. This is not a major change request in structure.
Waiting for the update ?? Thank you very much
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>Today the following started to occur when updating an existing post – upon clicking publish it redirects to /wp-admin/post.php with the following:
{“success”:”false”,”error”:{“message”:”Forbidden”}}
In the plugin’s settings page with both debugging options enabled nothing new is logged since the 2nd when trying to publish edits.
I also noticed there is over 2000 log entries – is it possible to have a maximum number of entries for the log?
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>We have our site set to “cache everything” on cloudflare with a 1 hour expiration (lowest on Pro plan). This creates a problem when we publish new posts as CloudFlare can take a while to cache the new version of the home page.
Does the CloudFlare Cache Plugin purge CloudFlare’s cache of the home page on publish of a new post?
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>I appreciate the time taken to read and respond, and can also appreciate that this plugin was never intended to address these use cases, but I thought these would be cool additions. I know you can go to the cloudflare site itself, and use this plugin to purge individual urls, to accomplish a lot what I mentioned. I just had to ask if it was possible as it would be nice to not have to remember to do this everytime.
If anything, just give clarity on what actually is being purged and what triggers it.
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>I had to delete this plug-in because it was creating hundreds of strange “log entries” that were visible on the front end of my site. I discovered them when I used my site’s search function; it revealed hundreds of pages of odd “log entries.” I’ve deleted the log entries (using the plug-in) and I’ve also deleted the plug-in, so I can’t include a link to the problem, sorry. If I could resolve this issue, I’d re-install the plug-in. Thank you!
Mike
https://www.youthallies.com
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>I think if the plugin is network activated, you shouldn’t need to request the email and token ID for the subsites, only the subdomain info for the domain that needs to be purged.
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>I’m having issues with blogs that have domains set using the WordPress MU Domain Mapping plugin. It tries to remove items from the cache of the original subdomain address as I redirect all users to that to take advantage of my wildcard SSL cert, e.g. test.com goes to test.bla.com/wp-admin/ for the admin section. When saving a post it logs that it has failed to purge the test.bla.com/postname/ address due to it not being in the right zone on Cloudflare. In the meantime I’m going to try and find a way to modify this to work if a domain is set, not sure why the_permalink doesn’t autodetect the domain mapped address already though.
Any help would be great, I’ll update this post if I fix it.
Cheers,
Ed
https://www.ads-software.com/plugins/cloudflare-cache-purge/
]]>I use the plugin “Enable Media Replace” which allows you to upload a new media file and replace the existing one. Is there some way I could hook this into CloudFlare Cache Purge so when replacing a file it gets purged from cache?
https://www.ads-software.com/extend/plugins/cloudflare-cache-purge/
]]>I am using this along with W3 Total Cache and it seems the CloudFlare purge is happening before the cache is being purged, so the first time I update a post it purge’s CloudFlare’s cache only to fill it again with the old version. I need to save twice each time to do a proper purge. Can you fix this?
One other thing, the CSS style ccpurge.css is affecting all the links on the admin, this needs to be more specific.
https://www.ads-software.com/extend/plugins/cloudflare-cache-purge/
]]>should i still have the official cloudflare plugin installed ? and how does this work with wp super cache ? thank you, chris
https://www.ads-software.com/extend/plugins/cloudflare-cache-purge/
]]>