Automatically clear CloudFlare cache. And, manage your CloudFlare settings within WordPress.
How can I purge extra URLs?
Post related urls are filterable by Strategies
and sunny_post_related_urls
. See examples on Sunny Purge Extra URLs Example.
If you don’t understand the example code, hire me instead.
How can I tweak Sunny to work for my special needs?
Extend its Laravel-like container.
What version of PHP do I need?
PHP 7.0
or later.
What version of WordPress do I need?
WordPress 4.7
or later.
What to do when `Parse error: syntax error`?
If you encountered this error:
Parse error: syntax error, unexpected ‘:’, expecting ‘;’ or ‘{‘ in wp-content/plugins/sunny/src/Sunny.php on line XX
You probably running on a old version of PHP. Upgrade your server to PHP 7.0
or later.
Unable to dismiss advertisements
Sunny shows a few admin notices in WP admin dashboard promoting the author’s web development services every 2 weeks.
They are dismissible via the X
button on the right corner.
Why do they don’t go away?
Your caching settings are incorrect! Possible issues:
- Database query caches not purged when updated
- Object cache expire time too long
- Cloudflare is caching
wp-admin
Sunny works with database query caching and object caching. This plugin won’t fix improper server configuration.
But… other plugins don’t have this issue?
I doubt. Sunny saves/retrieves those notices via Options API which commonly used in plugins. Thus, other plugins should get outdated options as well. Hire a developer to check your site!
If you still not convinced, submit a pull request with failing test case via GitHub.
Should I install Sunny version 1 because of PHP 5 incompatibles?
No. Sunny version 1 uses Cloudflare API v1 which deprecated since 9th November, 2016. Either update your server or uninstall Sunny.
Don’t know how to update PHP?
Will you support older versions of PHP or WordPress?
Depends. I accept this kind of custom coding jobs. However, prepare for being rejected if the requirement doesn’t make sense.
Shoot me an email at info@typist.tech or use this contact form.
Is this plugin written by Cloudflare, Inc.?
No. This plugin is a Typist Tech project.
Who make this plugin?
Tang Rufus, a freelance developer for hire. I make Typist Tech also.
Can I install Sunny, Sunny and Cloudflare’s official plugin at the same time?
Yes, all of them work together without problems.
- Install WP Cloudflare Guard if you want to protect your site from bad IPs
- Install Sunny if you want to purge Cloudflare’s cache automatically
- Install the official plugin if you can’t see the real IP from visitors
Does this plugin available in my language?
English works out of the box.
Traditional Chinese language pack is available here.
You can add your own translation at translate.wordpress.org.
How to get support?
Read the whole readme and FAQ first!
How can I support this plugin?
If you like the plugin, feel free to:
Besides, Sunny
is open source and hosted on GitHub. Feel free to make pull requests.
Last but not least, you can hire me. Shoot me an email at info@typist.tech or use this contact form.
What if I want more?
Hire me! Shoot me an email at info@typist.tech or use this contact form.