前言介紹
- 這款 WordPress 外掛「CC-Cache」是 2016-04-17 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2016-10-03,距離現在已有 3135 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.4.2 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
cache | Apache | clearcode | mod_rewrite |
內容簡介
CC-Cache 插件支援文章、頁面和任何公開的自訂文章類型的快取,包括單獨的和存檔頁面。
它也支援「靜態頁面顯示」選項:首頁、文章頁和標準的最新文章列表。
此外,此外掛也相容於多站點 WordPress 安裝。
它如何運作?
當使用者(即 WordPress 登出使用者)第一次開啟一個頁面時,此外掛會將所有渲染的 HTML 儲存在 wp-content/cache 目錄中的檔案中。
從此之後,任何存取網站的使用者都會直接從生成的 HTML 檔案中提供內容。此時,WordPress 還未初始化此頁面。
如果您對相應的文章/頁面進行更改,將刪除生成的快取檔案,然後進程從頭開始。
您也可以從「快取選項頁面」(造訪 wp-admin 中的「設定 > 快取」頁面)清除所有快取檔案或手動從 wp-content/cache 目錄中刪除檔案。
小提示
您可以透過在瀏覽器中開啟頁面的原始碼並向下捲動至結束的
HTML 標籤,檢查頁面的內容是否是從快取檔案中提供的。如果內容已快取,則應該會看到附註,列出了頁面上次緩存的日期和時間,例如:
您可以通過將 cache=false 添加到 URL 的參數中來為單個請求禁用快取並獲取原始 HTML。例如:
http://example.com/?cache=false
您也可以通過添加 HTTP 標頭 cache=false,為單個請求禁用快取並獲取原始 HTML。
已登入的使用者總是會獲取原始 HTML。
未來版本的想法
添加對類別、標籤、稅目和作者的支援。
添加對 RSS/Atom 訂閱的支援。
添加對 Nginx 和 IIS 伺服器的支援。
添加對其他 WordPress 檔案系統方法的支援。
添加重新生成所有快取檔案的功能。
需求
Apache 伺服器
mod_rewrite 模組
可寫入 wp-content/cache 目錄的權限
PHP 解譯器版本 >= 5.3
原文外掛簡介
The CC-Cache plugin supports caching of Posts, Pages, and any public Custom Post Types – including single and archive pages.
It also supports a “static page display” option: Front page, Posts page, and standard Latest Posts listing.
This plugin is compatible with Multisite WordPress installations.
How does it work?
When a user (i.e. someone who is logged out of WordPress) opens a page for the first time, the plugin saves all the rendered html to a file in the wp-content/cache directory.
From this moment onwards, any user who accesses the site will be served content directly from the generated html file. WordPress at this point is not initialized for this page.
The generated cache file will be removed when you make changes to the corresponding Post/Page, and then the process starts from the beginning.
You can also clear all cached files from the Cache options page (visit the ‘Settings > Cache’ page in wp-admin), or manually delete files from the wp-content/cache directory.
Tips & Tricks
You can check if a page’s content is served from a cache file by opening the page’s source code in the browser and scrolling down to the closing
If the content is cached, you should see a comment with the date and time the page was last cached, for example:
You can disable cache for a single request and get the raw html by adding cache=false to a URL’s parameter, for example:
http://example.com/?cache=false
You can disable cache for a single request and get the raw html by adding cache=false HTTP header.
Logged-in users always get the raw html.
Ideas for future versions
Add support for Categories, Tags, Taxonomies, and Authors.
Add support for RSS/Atom feeds.
Add support for Nginx and IIS servers.
Add support for other WordPress Filesystem Methods.
Add regenerate function for all cache files.
Requirements
Apache server
mod_rewrite
Write access to wp-content/cache directory
PHP interpreter version >= 5.3
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「CC-Cache」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.0 | 1.1.0 | 1.2.0 | 1.3.0 | 1.3.1 |
延伸相關外掛(你可能也想知道)
CC-IMG-Shortcode 》這個外掛可以新加入
HTML 標籤的 [img] 短碼代碼。它也可以在使用者按下「加入媒體」按鈕時,透過自動插入格式化的短碼代碼到編輯器內,實現在文...。