Title: WPDB Cache Money
Author: postpostmodern
Published: <strong>2009 年 9 月 29 日</strong>
Last modified: 2011 年 11 月 18 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/wpdb-cache-money.svg)

# WPDB Cache Money

 由 [postpostmodern](https://profiles.wordpress.org/postpostmodern/) 開發

[下載](https://downloads.wordpress.org/plugin/wpdb-cache-money.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/wpdb-cache-money/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/wpdb-cache-money/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/wpdb-cache-money/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/wpdb-cache-money/#developers)

 [技術支援](https://wordpress.org/support/plugin/wpdb-cache-money/)

## 外掛說明

Cache Money stores all database result sets on the filesystem as serialized data,
by using the oft-neglectged wp-content/db.php to extend the normal $wpdb class. 
Result sets will be updated as needed on a user by user basis when they do actions
that perform update queries.

Please note that this is not a full scale page cache, like WP-Cache or WP Super 
Cache, although this will work just fine in conjunction. Cache Money is meant for
sites with constantly changing content, where a full cache may not be suitable.

Tested with WordPress and WordPress MU 2.8.0 ~ 3.1
 Requires PHP 5, like all good
PHP apps.

## 螢幕擷圖

[⌊I gots to get paid, son /trunk/screenshot-1.png 
photo by Andrew Magill http://
www.flickr.com/photos/amagill/362201147/⌉⌊I gots to get paid, son /trunk/screenshot-
1.png 
photo by Andrew Magill http://www.flickr.com/photos/amagill/362201147/⌉[

I gots to get paid, son `/trunk/screenshot-1.png` photo by Andrew Magill http://
www.flickr.com/photos/amagill/362201147/

## 安裝方式

 1. Place entire /wpdb-cache-money/ directory to the /wp-content/plugins/ directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Bling

## 常見問題集

#### This doesn’t do anything!

Yes it does. Hey, didn’t you ask this question over on my other plugin too?

#### I need the cache to be cleared at a different interval than 5 minutes.

Change `$cacheMoney->threshold` to whatever number of seconds you wish.

#### How can I tell if this is working?

The directory wp-content/plugins/wpdb-cache-money/ should be full of files with 
names similar to `4a13fc6a615ac14cc3f58160ce9c52f3.php`. If not, check to make sure
this directory is writable by your server. `echo $wpdb->stats(TRUE)` will give you
a result like `q: 9 | c: 6 | m: 9.055 t: 0.171`. `q` is the number of actual database
queries, `c` is the number of cached queries, `m` is the memory usage in megabytes,
and `t` is the time in seconds to render the page. `echo $wpdb->stats()` will do
the same, wrapped in an html comment, for times when you need to be discrete. There
is also a profiler method – `echo $wpdb->profiler()`. You will need to make sure`
$cacheMoney->useProfiler` is set to `TRUE` to use this. The default for the profiler
is to sort the queries by length of time descending. `$wpdb->profiler(FALSE)` will
show the queries in the order performed.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

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

參與者

 *   [ postpostmodern ](https://profiles.wordpress.org/postpostmodern/)

[將〈WPDB Cache Money〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wpdb-cache-money)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/wpdb-cache-money/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/wpdb-cache-money/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/wpdb-cache-money/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/wpdb-cache-money/)。

## 變更記錄

#### .5

 * Admin settings area added, major code cleanup, bumped min WP version to 3.0 *

#### 0.35

 * Minor code cleanup *

#### 0.31

 * Important security fix *

#### 0.22

 * Not caching options queries using autoload, was screwing up wp cron

#### 0.21

 * Added second parameter to wp->query(), to bypass reset of internal timer on inserts

#### 0.176

 * Using HEREDOC syntax for serialized data

#### 0.175

 * Improved caching with FOUND_ROWS() queries

#### 0.171

 * Fixed bug in escaped single quotes in serialized data.

#### 0.166

 * Allows a salt, used in the md5 generation of file names.

#### 0.165

 * Allows logged in administrators to clear all cache info with the variable ?cache-
   clear in query string

#### 0.16

 * Allows logged in administrators to view cache info with the variable ?cache-profile
   in query string, set to ‘sort’ to sort by length

#### 0.15

 * clearCache() method to empty cache files. Called automatically on plugin deactivation.

#### 0.14

 * Improved styles in profiler().

#### 0.13

 * First pass at query browser. This is not active – if this proves to be a bad 
   idea, will be removed from later versions.

#### 0.1

 * Refined profiler() methods.

#### 0.09

 * Bug fixes. First pass at documentation, profiler() methods.

#### 0.02

 * Initial public release. No documentation.

## 中繼資料

 *  版本 **0.35**
 *  最後更新 **15 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 3.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.2.1**
 *  語言
 * [English (US)](https://wordpress.org/plugins/wpdb-cache-money/)
 * 標籤:
 * [cache](https://tw.wordpress.org/plugins/tags/cache/)[cash](https://tw.wordpress.org/plugins/tags/cash/)
   [database](https://tw.wordpress.org/plugins/tags/database/)[db](https://tw.wordpress.org/plugins/tags/db/)
   [money](https://tw.wordpress.org/plugins/tags/money/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wpdb-cache-money/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/wpdb-cache-money/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/wpdb-cache-money/reviews/)

## 參與者

 *   [ postpostmodern ](https://profiles.wordpress.org/postpostmodern/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/wpdb-cache-money/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://www.heifer.org/)