Title: Samrat Website Cache
Author: MD. Samrat Hossen
Published: <strong>2026 年 4 月 4 日</strong>
Last modified: 2026 年 4 月 4 日

---

搜尋外掛

![](https://ps.w.org/samrat-website-cache/assets/banner-772x250.png?rev=3498599)

![](https://ps.w.org/samrat-website-cache/assets/icon-256x256.png?rev=3498599)

# Samrat Website Cache

 由 [MD. Samrat Hossen](https://profiles.wordpress.org/emily50/) 開發

[下載](https://downloads.wordpress.org/plugin/samrat-website-cache.1.0.0.zip)

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

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

## 外掛說明

**Samrat Website Cache** is a simple yet powerful caching solution designed to dramatically
improve your WordPress website’s loading speed. By caching your pages as static 
HTML files and optionally minifying your code, visitors experience lightning-fast
page loads.

#### Key Features

 * **Page Caching** – Stores rendered pages as static HTML files for instant delivery
 * **HTML Minification** – Removes unnecessary whitespace and comments from HTML
 * **CSS Minification** – Minifies inline CSS styles for smaller file sizes
 * **JavaScript Minification** – Minifies inline JavaScript code
 * **Logged-in User Cache** – Optional caching for authenticated users
 * **Cache Expiry Control** – Set custom cache lifetime from 1 hour to 1 week
 * **Page Exclusions** – Exclude specific URLs from caching (supports wildcards)
 * **Cookie Exclusions** – Skip caching when specific cookies are present
 * **One-Click Cache Clear** – Clear all cache instantly from admin bar or settings
 * **WooCommerce Compatible** – Pre-configured exclusions for cart, checkout, and
   account pages
 * **Auto-Clear Cache** – Automatically clears cache when content is updated

#### Why Choose Samrat Website Cache?

 1. **Lightweight** – No bloated features, just essential caching that works
 2. **Easy Setup** – Works out of the box with sensible defaults
 3. **Beautiful Admin UI** – Modern, intuitive settings interface
 4. **Developer Friendly** – Clean, well-documented code

#### Perfect For

 * Blogs and personal websites
 * Business and portfolio sites
 * WooCommerce stores (with proper exclusions)
 * High-traffic websites
 * Shared hosting environments

### External Services

This plugin does **not** connect to any external APIs or third-party services. All
caching is performed locally on your server — rendered pages are saved as static
HTML files inside the plugin’s own `cache/` directory and served directly from there.

**WordPress REST API discovery links in cached content**

WordPress core automatically injects a `<link rel="https://api.w.org/">` tag and
a link to `xmlrpc.php` into every page’s `<head>` section. When this plugin caches
a page, those links are stored as part of the cached HTML exactly as WordPress generated
them. This plugin does not itself send any data to `api.w.org` or any other remote
host; it simply preserves whatever markup WordPress core has already rendered.

No user data is collected, transmitted, or processed by this plugin. If you need
information about WordPress core’s own REST API or XML-RPC endpoints, please refer
to:

 * WordPress.org Privacy Policy: https://wordpress.org/about/privacy/
 * WordPress.org Terms of Service: https://wordpress.org/about/license/

### Additional Info

#### Minimum Requirements

 * WordPress 5.0 or higher
 * PHP 7.4 or higher

#### Support

For support, please visit [our website](https://samrat-personal-portfolio.netlify.app/)
or create a support topic on the WordPress.org plugin page.

#### Contributing

Contributions are welcome! Please feel free to submit a Pull Request on our GitHub
repository.

## 安裝方式

#### Automatic Installation

 1. Go to Plugins > Add New in your WordPress admin
 2. Search for “Samrat Website Cache”
 3. Click “Install Now” and then “Activate”
 4. Go to Website Cache > Settings to configure

#### Manual Installation

 1. Download the plugin zip file
 2. Go to Plugins > Add New > Upload Plugin
 3. Upload the zip file and click “Install Now”
 4. Activate the plugin
 5. Go to Website Cache > Settings to configure

#### FTP Installation

 1. Download and extract the plugin zip file
 2. Upload the `samrat-website-cache` folder to `/wp-content/plugins/`
 3. Activate the plugin through the Plugins menu
 4. Go to Website Cache > Settings to configure

## 常見問題集

### Does this plugin work with WooCommerce?

Yes! The plugin comes with pre-configured exclusions for WooCommerce cart, checkout,
and my-account pages. It also excludes pages when WooCommerce cart cookies are present.

### Will caching break my dynamic content?

By default, the plugin excludes logged-in users from caching. If you have specific
pages with dynamic content, add them to the “Exclude Pages” list in settings.

### How do I clear the cache?

You can clear the cache in several ways:
 1. Click “Clear All Cache” button on the
settings page 2. Click “Cache > Clear Cache” in the admin bar 3. The cache automatically
clears when you update posts or pages

### Does this work with other caching plugins?

We recommend using only one page caching plugin at a time to avoid conflicts. Disable
other caching plugins before activating Samrat Website Cache.

### Is the minification safe?

The minification is designed to be safe and only removes unnecessary whitespace 
and comments. It preserves content in `<pre>`, `<code>`, `<textarea>`, `<script>`,
and `<style>` tags. However, if you experience any issues, you can disable minification
individually for HTML, CSS, or JS.

### How do I exclude a page from caching?

Go to Website Cache > Settings, find the “Exclude Pages” field, and add the URL 
path (one per line). For example:
 * `/contact/` – Excludes the contact page * `/
api/*` – Excludes all URLs starting with /api/

### Does this plugin support multisite?

The plugin works on multisite installations, but each site needs to be configured
individually.

### How can I verify the cache is working?

View the page source of a cached page. At the bottom, you’ll see a comment like:

You can also check the response headers for `X-Samrat-Cache: HIT`.

## 使用者評論

![](https://secure.gravatar.com/avatar/35f45800107ebaefbab42dc685fa9fbda053af6bb4c6c2836e6d80123590edf9?
s=60&d=retro&r=g)

### 󠀁[Easy free caching plugin](https://wordpress.org/support/topic/easy-free-caching-plugin/)󠁿

 [masud2233](https://profiles.wordpress.org/masud2233/) 2026 年 4 月 5 日

simple lightweight free caching. Amusing😍

![](https://secure.gravatar.com/avatar/19825eb5925f826fb8193cf13ccda67210deaf63f78664ea9b132c94c71e6bea?
s=60&d=retro&r=g)

### 󠀁[Simple & Effective Caching Plugin for Better Performance](https://wordpress.org/support/topic/simple-effective-caching-plugin-for-better-performance/)󠁿

 [noursenaim](https://profiles.wordpress.org/noursenaim/) 2026 年 4 月 5 日

I recently started using Samrat Website Cache, and it’s a great lightweight solution
for improving WordPress site speed. What I really like: Easy setup – no complicated
configuration required Lightweight & fast – doesn’t slow down the admin panel Noticeable
performance improvement after activation Works well for small to medium websites

 [ 閱讀全部 2 則使用者評論 ](https://wordpress.org/support/plugin/samrat-website-cache/reviews/)

## 參與者及開發者

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

參與者

 *   [ MD. Samrat Hossen ](https://profiles.wordpress.org/emily50/)

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

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

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

## 變更記錄

#### 1.0.0

 * Initial release
 * Page caching with static HTML files
 * HTML, CSS, and JavaScript minification
 * Configurable cache expiry (1 hour to 1 week)
 * Exclude pages by URL pattern
 * Exclude by cookies
 * Toggle caching for logged-in users
 * WooCommerce compatibility
 * Auto-clear cache on content updates
 * Admin bar integration
 * Modern, responsive admin UI

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **2 個月前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/samrat-website-cache/)
 * 標籤:
 * [cache](https://tw.wordpress.org/plugins/tags/cache/)[minify](https://tw.wordpress.org/plugins/tags/minify/)
   [optimization](https://tw.wordpress.org/plugins/tags/optimization/)[performance](https://tw.wordpress.org/plugins/tags/performance/)
   [speed](https://tw.wordpress.org/plugins/tags/speed/)
 *  [進階檢視](https://tw.wordpress.org/plugins/samrat-website-cache/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  2 個 5 星使用者評論     ](https://wordpress.org/support/plugin/samrat-website-cache/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/samrat-website-cache/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/samrat-website-cache/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/samrat-website-cache/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/samrat-website-cache/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/samrat-website-cache/reviews/#new-post)

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

## 參與者

 *   [ MD. Samrat Hossen ](https://profiles.wordpress.org/emily50/)

## 技術支援

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

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

## 贊助

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

 [ 贊助這個外掛 ](https://samrat-personal-portfolio.netlify.app/)