[WordPress] 外掛分享: LWSCache

WordPress 外掛 LWSCache 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「LWSCache」是 2022-03-16 上架。
  • 目前有 10000 個安裝啟用數。
  • 上一次更新是 2025-01-16,距離現在已有 108 天。
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.0 以上。
  • 有 6 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

aurelienlws |

外掛標籤

LWS | cache | nginx |

內容簡介

這個外掛是由 LWS 開發的,可以幫助您在編輯頁面、文章、信息時自動管理您的 LWSCache 清除。

它提供了一種清除所有 LWSCache 的方法。

這個外掛僅適用於使用 LWSCache 系統的伺服器。這種緩存系統預先安裝在 LWS 的經典共享 Web 主機、WordPress 主機 以及即將推出的 cPanel 主機上。

您網站的加載速度對其成功至關重要。您的網站訪問量越高,系統使用的 RAM 和 CPU 記憶體就越多,網頁加載越慢。因此,您需要一個緩存系統,以避免在不必要時重新加載網頁。

此外,網站頁面加載速度也是 Google 排名算法中的因素。因此可以改善加載時間的快取插件將提高您的 SEO 排名。低排名可能意味著曝光不足,往往無法讓您從網站中賺取收入。大多數網站的加載時間不到三秒。超過這個時間,很多用戶已經離開了該頁面。

LWS Cache 工具是由 LWS 設計和開發的系統。它通過在伺服器級別配置的高級緩存機制來優化您的網站加載性能。該工具使用 NGINX 提供的技術。

運作方式

啟用 LWS Cache 後,在訪客和 Web 伺服器之間引入了一個緩存伺服器。
目的是減少所需的腳本執行次數。為此,它將執行的結果保留在記憶體中,以供需要相同回應的未來請求使用。這意味著同一腳本不再執行多次以達到相同的結果。

因此,我們消除了腳本執行等待時間對頁面加載時間的影響。同時,我們節省了腳本執行期間所使用的資源。

訪問者從 Web 伺服器請求頁面。例如:index.php。 LWS Cache 檢查頁面是否已生成並存儲在緩存中

如果是,則直接將頁面返回給訪客,無需訪問 Web 服務器並且無需執行腳本

如果不是,則請求在腳本執行(PHP,NodeJS,Perl,Ruby,...)的結果上生成該頁面。

生成頁面後,LWS Cache 確定是否可以將頁面緩存(通過標題、URL 等)

如果是,則將頁面保存在緩存中並返回給訪客

如果不是,則將頁面保存在短暫緩存中並返回給訪客

使用外掛管理 LWS Cache

WordPress LWS Cache 外掛可讓您在修改頁面或添加/核准評論時自動清除頁面緩存。

要管理外掛,在連接到 WordPress 管理控制台後,轉到“設置”菜單,然後轉到“LWS Cache”。

從設置頁面,您可以啟用/停用自動清空功能。您可以定義什麼時候自動清空 LWS Cache 並完全清除緩存。

整個緩存清空按鈕可以在 WordPress 管理控制台的任何位置找到(在屏幕頂部的快速訪問欄中)。

主要功能

有多個設置可用於管理您的 LWS Cache,您可以啟用或禁用這些設置:

自動清空

首頁清空(修改或添加文章時,發佈後垃圾回收已發布的文章)

原文外掛簡介

This plugin, created by LWS help to automatically manage your LWSCache purge when you edit your pages, post, messages…
It provide a way to purge all your LWSCache.
This plugin works only on servers using the LWSCache system. This cache is pre-installed with Classic shared web hosting, WordPress hosting and soon cPanel hosting from LWS.
The loading speed of your site is crucial to its success. The more visitors your site has, the more RAM and CPU memory the system uses. The page is loaded slowly. So you need a cache system to avoid reloading the page when it is not necessary.
In addition, the site’s page load speed is used in Google’s ranking algorithm. So caching plugins that can improve load times will improve your SEO ranking. Low rankings, and therefore insufficient exposure, often do not allow you to make a living from your website. The loading time of most websites is less than three seconds. Beyond that, many users have already left the page.
The LWS Cache tool is a system designed and developed by LWS. It optimize the loading performance of your website through the use of advanced caching mechanisms, configured at the server level. The tool uses the technologies provided by NGINX.
Functioning
When LWS Cache is enabled, a cache server is introduced between the visitor and the web server.
The aim is to reduce the number of script executions required. For that it keeps the result of the execution in memory for future requests requiring the same response. This means that the same script is no longer executed several times to achieve the same result.
Thus, we eliminate the waiting time of the script execution on the page loading time. At the same time, we save the resources used during the script execution.

The visitor requests the page from the web server. Example: index.php. LWS Cache checks if the page has already been generated and stored in the cache

If yes, the page is returned directly to the visitor without the need to access the web service and without executing the script
If not, the page is requested to be generated on the web service as a result of the script execution (PHP, NodeJS, Perl, Ruby, …).

Once the page is generated, LWS Cache determines if the page can be cached (via headers, URL, …)

If yes, the page is saved in the cache and returned to the visitor
If not, the page is saved in the microcache (short-lived cache) and returned to the visitor
Managing LWS Cache with the plugin
The WordPress LWS Cache plugin allows you to automatically purge the cache of your pages when you modify them or when you add/approve comments.
To manage the plugin, once connected to your WordPress administration console, go to the “Settings” menu and then “LWS Cache”.
From the settings page, you can enable/disable automatic emptying. You can define when to automatically empty the LWS Cache and completely purge the cache.
A button for emptying the entire cache can be found anywhere in the WordPress admin console (in the quick access bar at the top of the screen).
Key Features
Several settings are available to manage your LWS Cache, you can enable or disable these settings:

Automatic purge

Home Page Purge (when a post is modified or added, when a published post is trashed)

Purge Post/Page/Custom Post Type (when a post is published, when a comment is approved/published, when a comment is unapproved/deleted)

Purge Archives (date, category, tag, author, custom taxonomies)

Purge all cache

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「LWSCache」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


2.0 | 2.5 | 2.6 | 2.7 | 1.0.2 | 2.5.5 | 2.5.6 | 2.5.7 | 2.5.8 | 2.8.0 | 2.8.1 | 2.8.2 | 2.8.3 | 2.8.4 | 2.8.5 | trunk | 2.5.81 | 2.7.0.1 |

延伸相關外掛(你可能也想知道)

文章
Filter
Apply Filters
Mastodon