Wonder Cache

外掛說明

Wonder Cache is a dead-simple yet powerful caching plugin that includes superhuman strength and durability.
It’s forked from Batcache the major difference is; Wonder Cache uses server disk space instead of the persistent object cache.

Wonder Cache is aimed at preventing a flood of traffic from breaking your site. It does this by serving old pages to new users.
This reduces the demand on the web server CPU and the database. It also means some people may see a page that is a few minutes old.
However this only applies to people who have not interacted with your web site before.
Once they have logged in or left a comment they will always get fresh pages.

If you like our Wonder Cache, then consider checking out our other projects:

  • Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score.
  • Magic Login Pro – Easy, secure, and passwordless authentication for WordPress.
  • Easy Text-to-Speech for WordPress – Transform your textual content into high-quality synthesized speech with Amazon Polly.
  • Handywriter – AI-powered writing assistant that can help you create content for your WordPress.
  • PaddlePress PRO – Paddle Plugin for WordPress.

Contributing & Bug Report

Bug reports and pull requests are welcome on Github.

安裝方式

From within WordPress

  1. Visit ‘Plugins > Add New’
  2. Search for ‘Wonder Cache’
  3. Activate Wonder Cache from your Plugins page.
  4. That’s all.

Manually

  1. Upload the wonder-cache folder to the /wp-content/plugins/ directory
  2. Activate the Wonder Cache plugin through the ‘Plugins’ menu in WordPress
  3. That’s all.

常見問題集

Should I use this?

There are tons of caching plugin on the repository. Wonder Cache is one of simplest and compatible with multisite.
If you don’t want to deal with settings or running a multisite on shared hosting or where the persistent object caching is not available, give it a try.

Why was this written?

First of all, you need to understand why Batcache had written.

Batcache was written to help WordPress.com cope with the massive and prolonged traffic spike on Gizmodo’s live blog during Apple events. Live blogs were famous for failing under the load of traffic. Gizmodo’s live blog stays up because of Batcache.

But, Batcache depends on the object caching and it’s not simple to install as a plugin for the end-user. So, Wonder Cache is a fork of Batcache that written for almost same purpose.

Which one is better? Batcache or Wonder Cache?

Depends on the situation. If you are running your website on multiple servers and able to configure memcached pool, go with Batcache.
Other than, if you are running on single server or maybe shared server and don’t have much memory; use Wonder Cache.

Where the name comes from?

It comes from Wonder Woman.

Is it fastest caching solution?

Nope! If you are able to configure; go with varnish.
If you are good at the server, you can use nginx micro caching or page caching that supports apache rewrite. (e.g Powered Cache )
There is always vice/versa when you bring a new tool or adding complexity.

使用者評論

2024 年 2 月 27 日 2 則留言
Dear Mustafauysal, I wanted to express my sincere gratitude for your incredible contribution. Your TINY caching plugin has been an absolute game-changer for my website. After struggling with compatibility issues between FlyingPress and WP Rocket with Sucuri WAF, your plugin emerged as the perfect solution. Previously, I encountered significant challenges as other caching plugins caused my CPU to spike to 99%, leading to site breakdowns. However, perfmatters helped to alleviate some of these issues. Still, I required a lightweight page cache plugin to prevent server overload during peak traffic periods. Enter your Wonder Cache plugin. Not only has it seamlessly integrated with my site, but it has also significantly improved its speed and performance. I can now rest assured that even during high-traffic times, my site remains stable and responsive. Once again, thank you immensely for developing such a remarkable tool. Your dedication to creating solutions that truly enhance website functionality is greatly appreciated. Warm regards,Greg
2023 年 7 月 15 日
<font _mstmutation="1" _msttexthash="95823" _msthash="353">На самом деле - Тайник Чудес! Просто и мгновенно очистил кэш. Благодарю!!!</font><font _mstmutation="1"></font>
2022 年 1 月 17 日 1 則留言
Cache better, and serve page faster than premium cache plugins. Not writing anything in htaccess, or even in database! I also think this has the smallest cache plugin installer (zip size is only 15kb). Simply amazing!
閱讀全部 4 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Wonder Cache〉的開發相關工作。

參與者

〈Wonder Cache〉外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Wonder Cache〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.5 (Oct 25, 2023)

  • Vary the cache when only JSON is accepted.
  • PHP 8.2: Enable AllowDynamicProperties in wondercache class.
  • Tested with WordPress 6.4.

0.4 (Feb 8, 2022)

  • Fix: Never cache a request with X-WP-Nonce header
  • Opt-in CORS GET request cache
  • Increase timer sensitivity in debug info
  • Small tweaks & refactoring
  • Tested with WP 5.9

0.3 (Sep 2, 2021)

  • Updated & improved coding standards
  • Tested with WP 5.8
  • Added composer support

0.2.1 (Dec 8, 2020)

  • update author info
  • tested with WP 5.6

0.2.0 (Oct 6, 2019)

  • clean-up cache directory on deactivation
  • admin bar button added for flushing cache

0.1.0

  • Initial release