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

Generate Cache

外掛說明

When your cache is emptied (say, upon a new post or comment publication, or if you delete it manually after website changes), the plugin loops through selected items (posts, categories, tags or pages) and makes sure you have them all freshly cached to be rapidly served to visitors.

You can also use this plugin when performing website construction, design or maintenance, so that only cached pages are served to visitors.

How this works: Let’s say you’ve got a caching plugin installed on your blog (Hyper Cache, WP Super Cache, W3 Total Cache or what have you). When new content is added (posts, pages, comments, etc.) the cache is automatically deleted. But your entire blog will only be cached when somebody re-visits every single page. Generate Cache plugin keeps track of your cache directory and if its size drops below the value you specify, new cache for your entire blog will be automatically regenerated. You can choose which blog items should be taken into account: posts, categories, tags, pages and the home page.

Benefits:

  • Perform website maintenance/construction while serving cached pages to visitors.
  • Have your cache always prebuild for better search rankings, since page loading time is a significant SEO factor.
  • Quickly serve cached pages to visitors.
  • Never worry about prebuilding your cache manually.

Features overview:

  • Keeps track of your cache folder size so that it never drops below a certain limit.
  • Tries to guess your cache folder location, or you can specify it manually.
  • Choose for which blog items (posts, categories, tags, pages) cache should be regenerated.
  • Set cache generation interval.
  • Schedule automatic cache generation to be run at a specific time even if cache folder size is not below limit (in case your caching plugin doesn’t emply cache upon content changes).
  • Manually start/abort cache generation from the admin page.

Note: This is not a caching plugin! It is to be used only together with such.

My other plugins:

  • Intuitive Navigation (https://wordpress.org/extend/plugins/intuitive-navigation/)
  • Drop in Dropbox (https://wordpress.org/extend/plugins/drop-in-dropbox/)

Links: Steaming Kettle Website Design & Video Production Studio

螢幕擷圖

  • Settings admin page

安裝方式

  1. Unzip the archive and put the folder into your plugins folder (/wp-content/plugins/).
  2. Activate the plugin from the Plugins admin menu.
  3. Go to Settings -> Generate Cache to set some options.

常見問題集

What kind of script actions are behind this plugin?

When there is no cache for some page, a script is executed which determines the size of the cache directory and compares it to the limit you specify. If the limit is not reached, a background process is triggered getting the contents of every blog item (post, page, category, tag, home) so that new cache is generated. After all pages have been called, the process is terminated.

How long will it take to generate cache for my entire site?

All pages are called within 1-2 second intervals. So if your blog has 100 pages, its full cache will be generated in about 100-200 seconds.

使用者評論

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

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

0.4

  • Error fixes

0.3

  • Minor code fixes
  • Added manual cache generate/abort

0.2

  • Added scheduling feature

0.1

  • Initial release