前言介紹
- 這款 WordPress 外掛「WP File Cache」是 2010-02-11 上架。 目前已經下架不再更新,不建議安裝使用。
- 目前有 700 個安裝啟用數。
- 上一次更新是 2010-12-16,距離現在已有 5551 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 2.6 以上版本才可以安裝。
- 有 2 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
cache | file cache | performance | object cache |
內容簡介
這個外掛實現了物件級持久性快取,可以作為 WordPress 內置的 WP_Object_Cache 的替代品使用。
與 WP Super Cache、Hyper Cache 和其他外掛不同,WP File Cache 不會快取整個頁面,而是快取 WordPress 明確請求快取的數據(使用 wp_cache_xxx() API 函數)。
儘管這意味著性能會比使用 WP Super Cache 等外掛差一些,但您的所有頁面依然保持動態。
如果您正在使用的外掛或主題沒有使用 WordPress 快取 API,則 WP File Cache 將無法幫助您。這是有意設計的,因為這個外掛試圖友好地運作。但是,對於大多數 WordPress 安裝來說,這將不是關鍵性問題。
WP File Cache 顯著降低了您數據庫的負載。例如,我的博客首頁,在啟用該外掛之前執行的 24 次查詢(0.02403 秒),但啟用之後只有 4 次查詢(0.00188 秒)。
與 DB Cache/DB Cache Reloaded 不同,該外掛將在管理面板中運作,並支援所有使用 WordPress 快取 API 的插件。
請注意,WP File Cache 將負載從您的數據庫轉移到您的磁盤/文件系統上,如果磁盤 I/O 是瓶頸,基於文件的快取將對您沒有幫助。
為了獲得最大的快取性能,請在您的 php.ini 中禁用 open_basedir — 它會使事情變得非常慢。
警告:啟用 PHP 安全模式且 Web 服務器由不同的用戶擁有檔案時,該插件可能無法運作。
wp-config.php 靈幻常數
有一個靈幻常數,WP_FILE_CACHE_LOW_RAM。當 ini_get('memory_limit') - memory_get_usage() 小於 WP_FILE_CACHE_LOW_RAM 時,快取會部分停用。
這意味著仍然會使用內存快取中可用的數據,但不會從文件中讀取。當您在 class.FileCache.php 中遇到記憶體不足出錯時,這可以很有用。
默認情況下,此功能已關閉,但您可以使用以下定義啟用它:
define('WP_FILE_CACHE_LOW_RAM', '4M');
將 4M 替換為您的值。
停用/刪除
請確保網頁伺服器可以寫入 wp-content 目錄:這個外掛需要刪除其中的 object-cache.php。
通過 WordPress 的「插件」選單停用/卸載外掛。
請驗證 wp-content/object-cache.php 檔案是否已被刪除。
原文外掛簡介
The plugin implements object level persistent caching and can be used instead of the built in WordPress WP_Object_Cache.
Unlike WP Super Cache, Hyper Cache and other plugins, WP File Cache does not cache the entire page; instead, it caches the data WordPress explicitly asks it to cache (using wp_cache_xxx() API functions).
Although this means that the performance will be less than with, say, WP Super Cache, all your pages remain dynamic.
WP File Cache won’t help you much if the plugins or theme you are using do not use WordPress Cache API. This is by design, since the plugin tries to play nice. However, for most WordPress installations this will not be critical.
WP File Cache significantly reduces the load from your database. Say, my blog’s home page without the plugin executes 24 queries (0.02403 sec); with the plugin enabled, only 4 queries (0.00188 sec).
Unlike DB Cache/DB Cache Reloaded, the plugin will work in the Admin Panel and supports all plugins that use WordPress Cache API.
Please note that WP File Cache shifts the load from your database to your disk/file system and if Disk I/O is a bottleneck, file based caches will not help you.
To get the maximum cache performance, please disable open_basedir in your php.ini — it really slows the things down.
WARNING: chances are that the plugin will not work when PHP safe mode is enabled and web server is operated by a different user than owns the files.
wp-config.php Magic Constants
There is one magic constant, WP_FILE_CACHE_LOW_RAM. When ini_get('memory_limit') - memory_get_usage() becomes less than WP_FILE_CACHE_LOW_RAM, caching gets partially disabled.
This means that the data that are available in the memory cache will still be used but no reads from the files will be performed. This can be useful when you get Out of Memory errors in class.FileCache.php.
By default this feature is turned off but you can enable it with defining
define('WP_FILE_CACHE_LOW_RAM', '4M');
Repleace 4M with your value.
Deactivation/Removal
Please make sure that wp-content directory is writable by the web server: the plugin will need to delete object-cache.php from it.
Deactivate/uninstall the plugin through the ‘Plugins’ menu in WordPress.
Please verify that wp-content/object-cache.php file was removed.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP File Cache」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.2.5 | 1.2.6 | 1.2.7 | 1.2.8 | 1.2.9 | trunk | 1.2.8.1 | 1.2.8.2 | 1.2.9.1 |
延伸相關外掛(你可能也想知道)
WP Super Cache 》本外掛可以從您的動態 WordPress 部落格生成靜態 HTML 檔案。在產生 HTML 檔案後,您的網頁伺服器會傳送該檔案,而不是處理比較沉重、耗費更多資源的 WordPre...。
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 》WP-Optimize Cache 是一個革命性的、全方位的 WordPress 效能外掛,將您的網站做快取、清理資料庫及圖片壓縮,讓您的網站快速且最佳化。我們的快取功能是建構...。
WP Fastest Cache – WordPress Cache Plugin 》han PNG or JPEG, which means faster downloads and less data consumption for your visitors, Database Cleanup – Detect and delete unnecessary d...。
SpeedyCache – Cache, Optimization, Performance 》SpeedyCache 是一款 WordPress 外掛,能透過網頁快取、最小化檔案和檔案壓縮的方式,幫助您減少網站載入時間。, 您可以在 https://speedycache.com/docs 找到...。
Breeze Cache 》Breeze是由Cloudways團隊開發的一款免費、簡單(卻功能強大)且使用者友好的WordPress快取外掛。它提供不同層級的WordPress效能優化選項,在WordPress、搭配W...。
OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy. 》, 使用 Google 的字型服務,怎麼可能與 GDPR 不符呢?事實上,當使用者的瀏覽器要求字型時,他們的 IP 會被 Google 記錄並用於分析。, — Lifehacker, , OMG...。Jetpack Boost – Website Speed, Performance and Critical CSS 》使用 Jetpack Boost 優化網頁性能加速你的 WordPress 網站。輕鬆啟用一鍵優化,提升核心 Web 重要指標。, 你是否知道,更快的網站可以:, , 在 Google 搜尋排...。
NitroPack – Performance, Page Speed & Cache Plugin for Core Web Vitals, CDN & Image Optimization 》NitroPack 是一個全方位的網站效能優化服務外掛,它包含了所有使網站加速所需的功能,包括圖片優化、代碼壓縮、快取、CDN (內容交付網路)、延遲載入等等。, ,...。Cache Enabler 》Cache Enabler 是個簡單卻強大的 WordPress 快取外掛,使用起來簡單且只需要最小化的設定,最重要的是能夠幫助網站提升效能來達到更快的載入時間。它會將前端...。
Aruba HiSpeed Cache 》Aruba HiSpeed Cache 是一個外掛,直接與 HiSpeed Cache 服務介面互動,該服務適用於 Aruba 主機平台,並能在 WordPress 儀表板中自動管理,無需訪問網站控制...。
10Web Booster – Website speed optimization, Cache & Page Speed optimizer 》10Web Booster 是提升網站整體效能的速度優化外掛程式,讓您專注並蓬勃發展 WordPress 網站的創意方面,同時讓我們專心於 WordPress 效能最佳化。透過 10Web ...。
Hummingbird Performance – Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN 》Hummingbird 透過添加細調控制文件壓縮、延後 CSS 和 JavaScript 樣式和腳本、CSS 和 JS 壓縮,以及懶加載等全球最佳緩存優化方法,讓您的網站更快,並優化網...。
Recent Tweets Widget 》查看最新的 WordPress 外掛優惠。, 使用快取的 Twitter API v1.1 最新的 Recent Tweets Widget (最近的 Tweet 外掛)。它使用新版 Twitter API v1.1,並將 Twe...。
Seraphinite Accelerator 》這個外掛可以加速您的網站,使其更具吸引力和搜索引擎友好性。詳細了解如何使用。, 若要使用免費的額外功能,請按照屏幕上的外掛程式指示安裝免費的延伸外掛...。
Clearfy Cache – WordPress optimization plugin, Minify HTML, CSS & JS, Defer 》數千個使用者已經使用 Clearfy 外掛優化他們的 WordPress 網站。這是一個綜合且免費的工具,擁有豐富的設定。搭配其他外掛使用,可以讓您的 WordPress 網站更...。
