Title: Sunny
Author: Tang Rufus
Published: <strong>जुलै 16, 2014</strong>
Last modified: जानेवारी 8, 2018

---

प्लगइन शोधा

![](https://ps.w.org/sunny/assets/banner-772x250.png?rev=1798938)

हे प्लगइन **WordPress च्या शेवटच्या 3 महत्त्वाच्या प्रमुख पुनर्वितरणांच्या साथी 
चाचणी झालेले नाही**. हे येथे वापरल्यास सामर्थ्य देणार नाही किंवा त्या आधारित असु
शकते आणि WordPress च्या अधिक अद्ययावत आवृत्तींसह वापरताना संगतता समस्यांची शक्यता
आहे.

![](https://ps.w.org/sunny/assets/icon-256x256.png?rev=1798938)

# Sunny

 [Tang Rufus](https://profiles.wordpress.org/tangrufus/) कडून

[डाउनलोड करा](https://downloads.wordpress.org/plugin/sunny.2.5.0.zip)

 * [तपशील](https://mr.wordpress.org/plugins/sunny/#description)
 * [पुनरावलोकने](https://mr.wordpress.org/plugins/sunny/#reviews)
 * [डेव्हलोपमेंट](https://mr.wordpress.org/plugins/sunny/#developers)

 [समर्थन](https://wordpress.org/support/plugin/sunny/)

## वर्णन

Automatically purge Cloudflare cache, including cache everything rules.

#### Warning!!!

This plugin is not for normal users! Read the whole [readme](https://wordpress.org/plugins/sunny/#description)
and [FAQ](https://wordpress.org/plugins/sunny/#faq) before installing.

Cloudflare cache everything rules breaks most WordPress dynamic functionalities:

 * [WordPress Nonces](https://codex.wordpress.org/WordPress_Nonces) will be cached
 * Forms must be loaded via AJAX unless you’re using the USD$ 200 Cloudflare plan.
   [Learn more](https://github.com/TypistTech/sunny/issues/118#issuecomment-324325599)

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. See faq for more info.This is a free plugin, free as in free of charge
and in freedom. You can always remove those notices without breaking other parts
of Sunny.

The next major release of Sunny(v3.0.0) will require:

 * PHP 7.1
 * WordPress 4.9
 * Properly working [WP Cron](https://typist.tech/articles/ensure-wp-cron-runs-on-time/)

#### Features

 * Automatically purge Cloudflare `cache everything` rules’ caches
 * Use the latest Cloudflare API v4
 * Support custom post type
 * Hide admin bar from public-facing pages
 * WP REST API support
 * [Extendable Laravel-like container](https://github.com/Typisttech/sunny#extending-sunny)

#### Debuggers

Go `Sunny` –> `Debuggers`, it shows:

 * All related urls to be purged for a given post
 * Show targeted urls which always be purged
 * `Cache Status` of a given URL

#### How does Sunny different from Cloudflare’s official plugin?

At the time of writing, Cloudflare’s [official plugin](https://wordpress.org/plugins/cloudflare/)
doesn’t purge `cache everything` rules’ caches. Here comes Sunny! Sunny focus on
purging caches when needed.

#### Compatibility

 * Works with Cloudflare’s [official plugin](https://wordpress.org/plugins/cloudflare/)
 * Works with [WP Cloudflare Guard (Automatically create firewall rules to block dangerous IPs.)](https://wordpress.org/plugins/wp-cloudflare-guard/)

#### Things You Need to Know

 * You need PHP `7.0` or later
 * You need WordPress `4.7` or later
 * You need a Cloudflare account (free plan is okay)
 * This plugin was not built by [Cloudflare, Inc](https://www.cloudflare.com/)

> If you like the plugin, feel free to [rate it](https://wordpress.org/support/plugin/sunny/reviews/#new-post)
> or [donate](https://typist.tech/donation/). Thanks a lot! 🙂

#### Support

To save time so that we can spend it on development, please read the plugin’s [FAQ](https://wordpress.org/plugins/sunny/faq/)
first. Before requesting support, and ensure that you have updated Sunny and WordPress
to the latest released version and installed PHP 7 or later.

You can get support via [GitHub issues](https://github.com/Typisttech/sunny/issues)(
preferred) and WordPress [support forum](https://wordpress.org/support/plugin/sunny).

If you don’t provide these information, your support ticket will be ignored:

 * PHP version number (if you say `latest`, your ticket will be closed without replies)
 * WordPress version number
 * Sunny version number
 * What is the current behavior
 * What is the expected or desired behavior
 * Step to reproduce current behavior
 * Does it behave the same when Sunny is disabled
 * Does it behave the same when only Sunny is enabled
 * What have you tried to resolve the issue

#### For Developers

Sunny is open source and hosted on [GitHub](https://github.com/TypistTech/sunny).
Feel free to make [pull requests](https://github.com/Typisttech/sunny/pulls).

You can also tweak `Sunny` to work for you by [extending its Laravel-like container](https://github.com/Typisttech/sunny#extending-sunny).

## स्क्रीनशॉट

 * [[
 * Cloudflare Settings
 * [[
 * Admin Bar Settings
 * [[
 * Purge when Post Updated
 * [[
 * Debuggers – Cache Status for a Given URL
 * [[
 * Debuggers – Related URLs for a Given Post
 * [[
 * Debuggers – Additional URLs for Every Purge
 * [[
 * Annoying Sunny v1 deprecated notice

## नेहमी विचारले जाणारे प्रश्न

  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](https://github.com/TypistTech/sunny-purge-extra-urls-example).

If you don’t understand the example code, [hire me](https://typist.tech/contact/)
instead.

  How can I tweak Sunny to work for my special needs?

Extend its [Laravel-like container](https://github.com/Typisttech/sunny#extending-sunny).

  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](https://codex.wordpress.org/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](https://github.com/TypistTech/sunny).

  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](https://blog.cloudflare.com/sunsetting-api-v1-in-favor-of-cloudflares-current-client-api-api-v4/).
Either update your server or uninstall Sunny.

  Don’t know how to update PHP?

 * Contact you hosting company
 * Switch to a better hosting such as [WP Engine](https://typist.tech/go/wp-engine-isnt-business-worth-29-month/)
   or [Kinsta](https://typist.tech/go/kinsta-staging-environment/)
 * Hire me [https://typist.tech/contact](https://typist.tech/contact)

  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](https://mr.wordpress.org/plugins/sunny/info@typist.tech?output_format=md)
or use this [contact form](https://typist.tech/contact/).

  Is this plugin written by Cloudflare, Inc.?

No. This plugin is a [Typist Tech](https://typist.tech) project.

  Who make this plugin?

[Tang Rufus](https://mr.wordpress.org/plugins/sunny/info@typist.tech?output_format=md),
a freelance developer for hire. I make [Typist Tech](https://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](https://wordpress.org/plugins/wp-cloudflare-guard/)
   if you want to protect your site from bad IPs
 * Install [Sunny](https://wordpress.org/plugins/sunny/) if you want to purge Cloudflare’s
   cache automatically
 * Install the [official plugin](https://wordpress.org/plugins/cloudflare/) 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](https://translate.wordpress.org/projects/wp-plugins/sunny/language-packs).

You can add your own translation at [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/sunny).

  How to get support?

Read the whole [readme](https://wordpress.org/plugins/sunny/#description) and [FAQ](https://wordpress.org/plugins/sunny/#faq)
first!

  How can I support this plugin?

If you like the plugin, feel free to:

 * Give us a 5-star review on [WordPress.org](https://wordpress.org/support/plugin/sunny/reviews/#new-post)
 * Translate it at [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/sunny)
 * [Donate](https://typist.tech/donation/). Thanks a lot! 🙂

Besides, `Sunny` is open source and hosted on [GitHub](https://github.com/TypistTech/sunny).
Feel free to make pull requests.

Last but not least, you can hire me. Shoot me an email at [info@typist.tech](https://mr.wordpress.org/plugins/sunny/info@typist.tech?output_format=md)
or use this [contact form](https://typist.tech/contact/).

  What if I want more?

Hire me! Shoot me an email at [info@typist.tech](https://mr.wordpress.org/plugins/sunny/info@typist.tech?output_format=md)
or use this [contact form](https://typist.tech/contact/).

## समीक्षा

![](https://secure.gravatar.com/avatar/c9c78a7463536094de313f99523cd8a25eca382ed0135a6d372591df0b4bc20c?
s=60&d=retro&r=g)

### 󠀁[Smart plugin](https://wordpress.org/support/topic/smart-plugin-11/)󠁿

 [Arya](https://profiles.wordpress.org/aprakasa/) डिसेंबर 28, 2018

I used to purge one by one or just purge all the cache from Cloudflare admin. Since
I use this plugin, setting up Cloudflare it just something like set up and forget.

![](https://secure.gravatar.com/avatar/69973fbf6658e7a334910ecf9326f340bdac71ce1c09dfa9fd4248688779cef1?
s=60&d=retro&r=g)

### 󠀁[It’s Been Smooth Sailing With Sunny!](https://wordpress.org/support/topic/its-been-smooth-sailing-with-sunny/)󠁿

 [eyedeal](https://profiles.wordpress.org/eyedeal/) एप्रिल 5, 2018

This plugin is working for me everyday on multiple sites. Great product at a great
price. Highly recommend!

![](https://secure.gravatar.com/avatar/f12a4529358a53ed1e91142bf1573f146d2c5f07f76ac54474de7adb04b968b6?
s=60&d=retro&r=g)

### 󠀁[Does the job of purging cloudflare!](https://wordpress.org/support/topic/does-the-job-of-purging-cloudflare/)󠁿

 [Amaravati](https://profiles.wordpress.org/amaravati/) मार्च 27, 2018

but has a notification screen all the time….. a bit annoying.

![](https://secure.gravatar.com/avatar/d9411186a4186ebc98bede24760edeb02d8b451737a93461ac7d05cebef9d654?
s=60&d=retro&r=g)

### 󠀁[Constant Nag Messages](https://wordpress.org/support/topic/constant-nag-messages/)󠁿

 [Alan](https://profiles.wordpress.org/holo-alan/) डिसेंबर 15, 2017 3 उत्तर

Plugin does what it says, but the constant nag messages are a joke.

![](https://secure.gravatar.com/avatar/c7da2ae8e076ea688589b6e01e644d7677d4d7b42cb6a5e772159072620559da?
s=60&d=retro&r=g)

### 󠀁[Works Perfectly As Described](https://wordpress.org/support/topic/works-perfectly-as-described-4/)󠁿

 [Ashwin singh](https://profiles.wordpress.org/singhashwin27/) डिसेंबर 14, 2017

Works exactly as it is described. Go for it. Just need one more option of Purge 
Everything in WordPress admin bar.

![](https://secure.gravatar.com/avatar/ec4fedd5566ded7d79d0a05de2f2bd88561abf4e8205af40c113e30200ff7be6?
s=60&d=retro&r=g)

### 󠀁[Inserts advertising for competing web services](https://wordpress.org/support/topic/inserts-advertising-for-competing-web-services/)󠁿

 [skunkworks](https://profiles.wordpress.org/skunkworks/) ऑक्टोबर 6, 2017 2 उत्तर

I used to love this plugin until I discovered it was displaying ads (inside alerts)
for the author’s web design services on dozens and dozens of my client’s websites
that I look after. This looks very unprofessional. Will have to stop using this 
plugin now and remove it from all of my client’s sites.

 [ सर्व 25 पुनरावलोकने वाचा ](https://wordpress.org/support/plugin/sunny/reviews/)

## योगदानकर्ते आणि विकसक

“Sunny” हे मुक्त स्रोत सॉफ्टवेअर आहे. पुढील लोक या प्लगइनच्या निर्मितीत योगदान केले
आहे.

योगदानकर्ते

 *   [ Tang Rufus ](https://profiles.wordpress.org/tangrufus/)
 *   [ Typist Tech ](https://profiles.wordpress.org/typisttech/)

“Sunny” 2 लोकॅलसमध्ये भाषांतरित केले आहे. [अनुवादकांना](https://translate.wordpress.org/projects/wp-plugins/sunny/contributors)
त्यांच्या योगदानाबद्दल धन्यवाद.

[भाषांतर करा “Sunny” तुमच्या भाषेत.](https://translate.wordpress.org/projects/wp-plugins/sunny)

### विकासातील आग्रह?

[कोड ब्राउझ करा](https://plugins.trac.wordpress.org/browser/sunny/), [SVN संग्रहालय](https://plugins.svn.wordpress.org/sunny/)
तपासा, किंवा [विकास लॉग](https://plugins.trac.wordpress.org/log/sunny/) च्या [RSS](https://plugins.trac.wordpress.org/log/sunny/?limit=100&mode=stop_on_copy&format=rss)
द्वारे सदस्यता घ्या.

## बदलांची यादी

Full change log available at [GitHub](https://github.com/typisttech/sunny/blob/master/CHANGELOG.md)

#### 2.5.0

 * Remove class `I18n`
 * Update dependencies
 * Update readme

#### 2.4.1

 * Add required php version to README.txt
 * Apply code style patches and minor refactoring
 * Test on PHP nightly
 * Update dependencies

#### 2.4.0

 * Extract targets service provider
 * Show post type name in purge initiated notices

#### 2.3.0

 * Expose Container via WordPress action in Laravel style

#### 2.2.1

 * Fix: Ensure admins have a chance to view PHP 5.x unsupported notice
 * Fix: Do not force sticky notice when WP_DEBUG is true

#### 2.2.0

 * Purge adjacent posts urls
 * Debugger: Check whether a url is cached by Cloudflare
 * Add lots of tests

#### 2.1.0

 * Better WP REST API support
 * Purge homepage (both dynamic and static)
 * Add Debugger: Show all urls to be purged for a given post
 * Add Debugger: Show targeted urls which always be purged
 * Fix: Missing post url when purging

#### 2.0.1

 * Self deactivate if PHP version is older than `7.0.0`

#### 2.0.0

 * Update to Cloudflare API v4
 * Codebase rewrite

## मेटा

 *  आवृत्ती **2.5.0**
 *  शेवटचा अद्यतन **8 वर्षे पूर्वी**
 *  सक्रिय स्थापना **100+**
 *  वर्डप्रेस आवृत्ती ** 4.7 किंवा मोठा **
 *  परीक्षित केले आहे **4.9.29**
 *  PHP आवृत्ती ** 7.0.0 किंवा मोठा **
 *  भाषा
 * [Chinese (Hong Kong)](https://zh-hk.wordpress.org/plugins/sunny/), [English (Canada)](https://en-ca.wordpress.org/plugins/sunny/),
   आणि [English (US)](https://wordpress.org/plugins/sunny/).
 *  [तुमच्या भाषेत भाषांतर करा](https://translate.wordpress.org/projects/wp-plugins/sunny)
 * टॅग्ज:
 * [cache](https://mr.wordpress.org/plugins/tags/cache/)[caching](https://mr.wordpress.org/plugins/tags/caching/)
   [cloudflare](https://mr.wordpress.org/plugins/tags/cloudflare/)[rest-api](https://mr.wordpress.org/plugins/tags/rest-api/)
   [speed](https://mr.wordpress.org/plugins/tags/speed/)
 *  [प्रगत दृश्य](https://mr.wordpress.org/plugins/sunny/advanced/)

## मूल्यांकन

 4.2 पैकी ५ तारे.

 *  [  15 5-star reviews     ](https://wordpress.org/support/plugin/sunny/reviews/?filter=5)
 *  [  4 4-star reviews     ](https://wordpress.org/support/plugin/sunny/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/sunny/reviews/?filter=3)
 *  [  2 2-star reviews     ](https://wordpress.org/support/plugin/sunny/reviews/?filter=2)
 *  [  2 1-star reviews     ](https://wordpress.org/support/plugin/sunny/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/sunny/reviews/#new-post)

[सर्व पुनरावलोकने पहा](https://wordpress.org/support/plugin/sunny/reviews/)

## योगदानकर्ते

 *   [ Tang Rufus ](https://profiles.wordpress.org/tangrufus/)
 *   [ Typist Tech ](https://profiles.wordpress.org/typisttech/)

## समर्थन

काहीतरी सांगायचं आहे का? मदतीची आवश्यकता आहे का?

 [समर्थन फोरम पहा](https://wordpress.org/support/plugin/sunny/)

## देणगी

आपण हे प्लगइन पुरविण्यात समर्थन करू इच्छिता का?

 [ ह्या प्लगइनला देणगी द्या ](https://typist.tech/donation/)