Could to elaborate –> Add the strategy instance into Sunny’s container by using the sunny_register action. (Defining strategy class implementing )
Could you please let us know to implement it STEP BY STEP.
as I am newbie and not PHP expert
Thanks in advance
]]>I think plugin stopped working as well as CloudFlare Guard with WordPress or CloudFlare API update recently. Any plans for update?
]]>Sick of this plugin displaying begging notices every day.. Gone now!
]]>Hi,
I’ve just implemented AMP on my site and I’ve noticed Sunny doesn’t yet clear related URLs that end with /amp/
.
Could you please consider adding this as an option to the plugin in the future? It could be a checkbox in its settings that allows us users to choose if we also want to clear caches for AMP URLs or not.
Thanks a lot in advance!
]]>Hi, I’m updating clients plugins and if he is already using Cloudflare, does he still needs Sunny at the same time? What are the benefits running them together?
]]>hi , how to add new button to clear cache on cloudflare when click ? what is the php code ? thank you.
]]>I’ve scheduled some posts. None of them was published. (Missed schedule)
From cronjob I got this error:
<b>Parse error</b>: syntax error, unexpected ‘:’, expecting ‘{‘ in <b>/home/xxxxx/public_html/wp-content/plugins/sunny-purge-extra-urls-example-master/sunny-purge-extra-urls-example.php</b> on line <b>48</b><br />
Can you hemp me with that issue?
Thank you!
PS: After I deactivated Sunny Purge Extra URLs Example plugin, I got this error from cronjob:
<br />
<b>Parse error</b>: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) in <b>/home/xxxxx/public_html/wp-content/plugins/sunny/src/Sunny.php</b> on line <b>57</b><br />
Increasing amount of emails / support tickets / 1-star reviews about admin notices won’t dismissible. None of them provide useful information to debug or any proof that Sunny is the culprit.
If you encountered the same issue, please provide information on GitHub.
]]>When I add a comment the cache is deleted, but I have verified that the person’s name and email are cached. All visitors who read the article will see the name and email of the person who commented before the article.
]]>I’ve got the latest Sunny update, which is supposed to be exclusively for PHP 7, yet I’m getting all the following errors when testing with the PHP Compatibility plugin. Will these be addressed soon?
FILE: /var/www/testsite.humortimes/wp-content/plugins/sunny/src/REST/Controllers/Caches/Status/ShowController.php
————————————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————————————-
33 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword ‘NAMESPACE’ (since version 5.3)
————————————————————————————————————————————-
FILE: /var/www/testsite.humortimes/wp-content/plugins/sunny/src/REST/Controllers/Posts/Caches/DeleteController.php
————————————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————————————-
37 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword ‘NAMESPACE’ (since version 5.3)
————————————————————————————————————————————-
FILE: /var/www/testsite.humortimes/wp-content/plugins/sunny/src/REST/Controllers/Posts/RelatedUrls/IndexController.php
————————————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————————————-
36 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword ‘NAMESPACE’ (since version 5.3)
————————————————————————————————————————————-
FILE: /var/www/testsite.humortimes/wp-content/plugins/sunny/src/REST/Controllers/Targets/IndexController.php
————————————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————————————-
31 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword ‘NAMESPACE’ (since version 5.3)
————————————————————————————————————————————-
FILE: /var/www/testsite.humortimes/wp-content/plugins/sunny/vendor/typisttech/wp-better-settings/src/Decorators/Pages/TabbedPageInterface.php
———————————————————————————————————————————————
FOUND 1 ERROR AFFECTING 1 LINE
———————————————————————————————————————————————
77 | ERROR | ‘self’ type cannot be used outside of class scope
Currently if a new order is created on a site, which is using WooCommerce, Sunny will purge the Cloudflare cache, since an order is a custom post type.
Is there a way to define which type of posts being created or edit would cause a purge?
/
So certain types of posts could be excluded from causing a purge?
My theme links to “bottom-level” category URLs; for example, I have a category “English” whose parent is “Language learning”. WordPress displays the same content for
/category/english/
as it does for
/category/language-learning/english/
and I link to the former (the URL is shorter, which I consider more convenient). However, Sunny only purges the latter. Is there a way to force Sunny to purge the short URL as well?
]]>I installed plugin for tproger.ru website and trying to check if it’s working for page https://tproger.ru/translations/ssl-certificate/ on degub tab. It shows “Fetching data…” message and nothing occures. Also, real page purge on post update dont happening. I’ve got purge initiated message and still have old cached main page after 20 minutes.
]]>When editing and updating a post the first time Sunny seems to purge the cache relevant to the correct post ID. But updating further edits on the same post shows ID’s that do not exist.
Example using the actual post ID:
Sunny: Purge initiated.
Reason: Post (ID: 1328) is being edited
On subsequent edits to the same post, it shows this:
Sunny: Purge initiated.
Reason: Post (ID: 10054) is being edited
The ID in this example does not exist as a post, page or media.
]]>We host all of our sites on WPEngine, who, unfortunately will not upgrade PHP to 7.0 until all of the sites on our server are fully compatible. So… I guess this is where we part ways with Sunny. It’s a sad goodbye thanks to your latest update disabling the plugin since we are not running PHP 7. We would have gladly paid for a developer license… ?? Goodbye Sunny.
]]>Hi,
When I updated to version 2, my site broke. I had to deactivate the plugin from Plesk to work again.
There was this Error message:
Dismissible Notices Handler Error: The library can not be used because your version of PHP is too old. You need version 5.5 at least.
Thank you
Agis F
]]>Two of my sites got error after update to 2.0.0.
Parse error: syntax error, unexpected ‘:’, expecting ‘;’ or ‘{‘ in wp-content/plugins/sunny/src/Sunny.php on line 99
]]>Right now, there are several steps you must take to get to the “URL Purger” tool.
Rather than having to navigate into the Sunny admin screen, then select another tab to get to the Tools, then have a copied link to a page or post (or CSS resource file, etc.) it would be nice to simply have a link/button on each page/post near the “Publish” box, or even one in the admin-bar, which you could click to clear that URL from CloudFlare.
It would also be nice to have some preselected collections to purge, like the current theme folder, etc.
Thanks for a useful plugin!
]]>Great plugin!
As a suggestion, I think a lot of people would appreciate akismet integration so spammers can get blocked on the edge.
]]>Hi, thank you for this great plugin! I just got an email from cloudflare (see text below).
My question: Are planning to switch the plugin to Cloudflare API v4?
Thanks,
Stefan
Email from Cloudflare:
———————–
Time to Migrate to CloudFlare API v4
We’re reaching out because we noticed you’re using CloudFlare’s API v1. Starting November 9th, 2016 at noon Pacific Time (20:00 UTC), CloudFlare will no longer be supporting API v1.
CloudFlare uses API v4 to power our customer dashboard, so unlike API v1, it has support for every single feature on CloudFlare. We’ve written extensive documentation to help you migrate from v1 to v4 available here:
Hi,
First of all, thanks for this excellent plugin. I like that it sends an email everytime someone gets blocked but it appears to be sending it via php’s mail() function.
Is there a way to opt for sending emails via an SMTP server instead?
The server where my WordPress site is hosted is not the same as my mail server and since I’d like to enforce a strict DMARC policy and would rather not have to list IPs that do not belong to mail servers, the emails that Sunny sends me are tagged as Fail on DMARC checks.
Thanks in advance for the help,
Pierre
]]>Hey Tang, I have a couple of suggestions:
* Include the option to also purge the “posts” page for sites that work with a static home page. I managed to do this appending “get_permalink( get_option(‘page_for_posts’) )” to the array in line 53 of class-sunny-post-purger.php
* Purge paged categories/taxonomies up to certain number or depth: For example “https://www.site.com/category/page/2” and so on. In W3 Total Cache you can control the depth of the purge, so maybe you can take this funcionality to Sunny.
Thank you for your awesome plugin.
]]>WordPress 4.4.1
Parse error: syntax error, unexpected T_FUNCTION in /home/[sitename]/public_html/wp-content/plugins/sunny/includes/class-sunny-helper.php on line 103
]]>Hi
I am using latest version of your plugin and latest version of WP.
I added my email and API. When I press TEST SUNNY, I get error:
Error: Zone does not exist.
my domain on CF is mydomain.com and blog is running on blog.mydomain.com
it can be problem ?
Thanks.
]]>We routinely replace media files using the Enable Media Replace plugin. It would be AWESOME if Sunny could see that and automatically purge that URL in CloudFlare when this happens. Any chance of this getting added?
Thanks!
]]>It would be useful to have the Cloudflare API key obscured, or partially obscured, after it has been entered.
Usage is with a site with multiple admins, so as not to reveal a single admin’s separate Cloudflare API key to everyone.
]]>Hi there! 2 suggestions:
1 – enable and disable development mode from the plugin
2 – that shortcuts could be added to the admin bar for clearing cache, and enabling and disabling dev mode.
Thanks for the great plugin
]]>I’ve configured everything, including the CF API key. Test shows a successful connection.
I have iThemes Security and when it detects an invalid logon attempt, it blocks the IP in iThemes.
Integration for iThemes is selected in Sunny, but IP’s that are blocked by iThemes are NOT blocked in CF Firewall.
What could be the problem?
]]>Sorry if this has already been answered, but I can’t find the answer to what the service mode is referring to in the FAQs, the support forum, or the setup guide.
I’ve set this up on several sites. On most of them, the test says:
Success
DNS record for [domain] found: Yes
Service mode turned on: Yes
But on one site it says:
Success
DNS record for [domain] found: Yes
Service mode turned on: No
The domain is active on Cloudflare (not in development mode or paused) and is otherwise working normally. And I can’t see a setting that’s different on that one. What exactly is the service mode reporting? And does “no” suggest the plugin isn’t fully operating?
]]>Hi. Theoretically over time it’s possible to block the entire Internet like this ??
Sunny should also hook into listening for when iThemes Security is unblocking IPs, because it’s possible to configure lockout expiry length.
Thoughts?
]]>