Title: Anti-Cache Kit
Author: Fernando Tellado
Published: <strong>2025 年 9 月 6 日</strong>
Last modified: 2026 年 4 月 2 日

---

搜尋外掛

![](https://ps.w.org/anticache/assets/banner-772x250.jpg?rev=3483251)

![](https://ps.w.org/anticache/assets/icon-256x256.png?rev=3483249)

# Anti-Cache Kit

 由 [Fernando Tellado](https://profiles.wordpress.org/fernandot/) 開發

[下載](https://downloads.wordpress.org/plugin/anticache.4.1.0.zip)

[即時預覽](https://tw.wordpress.org/plugins/anticache/?preview=1)

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

 [技術支援](https://wordpress.org/support/plugin/anticache/)

## 外掛說明

**Anti-Cache Kit** is a development tool for WordPress developers and designers 
who need to bypass all caching and optimization mechanisms during development, testing,
or troubleshooting.

**Development tool only. Do not leave active on production sites.**

#### Key features

**Cache and optimization management**

 * Automatically detects and flushes 16+ cache plugins
 * Deactivates optimization plugins that interfere with debugging (Perfmatters, 
   FlyingPress, WP Asset CleanUp, and more)
 * Clears object cache (Redis, Memcached) and OPcache
 * Clears hosting-specific caches (SiteGround, Cloudflare, Kinsta)
 * Prevents browser caching for administrators

**Server-level cache prevention**

 * Automatic timestamped backup of .htaccess before any modification
 * Injects .htaccess rules to disable SiteGround cache via environment variables
 * Sets no-cache, no-store headers at server level for all visitors
 * Disables ETags and mod_expires to prevent conditional caching
 * Sends CDN/proxy bypass headers (X-Accel-Expires, Surrogate-Control)
 * Automatically restores original .htaccess on plugin deactivation

**Debug mode activation**

 * Automatic timestamped backup of wp-config.php before any modification
 * Comments out conflicting definitions with visible markers instead of deleting
   them
 * Enables WP_DEBUG, WP_DEBUG_LOG, and SCRIPT_DEBUG (errors go to wp-content/debug.
   log)
 * Disables WordPress cache (WP_CACHE = false)
 * Safely modifies wp-config.php using WordPress Filesystem API
 * Restores original wp-config.php from backup on plugin deactivation (plain copy,
   no processing)
 * Timestamped backups are kept for reference until the plugin is deleted

**Maintenance mode**

 * Optional status page for non-logged visitors
 * Quick toggle from admin bar
 * Customizable via filter hook
 * Self-contained output with aggressive cache prevention headers (503, no-store,
   Surrogate-Control)

#### Supported cache plugins

 * WP Rocket
 * W3 Total Cache
 * WP Super Cache
 * WP Fastest Cache
 * LiteSpeed Cache
 * SiteGround Optimizer
 * WP Optimize
 * Hummingbird (WPMU DEV)
 * Breeze (Cloudways)
 * Autoptimize
 * Cache Enabler
 * Surge
 * Redis Object Cache
 * Powered Cache
 * Comet Cache
 * Swift Performance

#### Supported optimization plugins

 * Perfmatters
 * FlyingPress
 * WP Asset CleanUp
 * Object Cache 4 Everyone
 * Zero Config Performance (WPO Tweaks)
 * Clearfy

#### Supported hosting caches

 * SiteGround (via .htaccess environment variables and plugin API)
 * Cloudflare (both new and legacy namespaces)
 * Kinsta
 * Generic hosting cache systems

### Developer Information

#### Hooks and Filters

 * `ayudawp_anticache_maintenance_data` – Filter to customize maintenance page data(
   heading, status, message, retry)
 * `ayudawp_anticache_cache_plugins` – Filter to modify the list of supported cache
   and optimization plugins

#### Constants

 * `AYUDAWP_ANTICACHE_VERSION` – Plugin version
 * `AYUDAWP_ANTICACHE_PLUGIN_DIR` – Plugin directory path
 * `AYUDAWP_ANTICACHE_PLUGIN_URL` – Plugin directory URL
 * `AYUDAWP_ANTICACHE_PLUGIN_BASENAME` – Plugin basename for hooks

#### Code examples

Customize maintenance page:

    ```
    add_filter( 'ayudawp_anticache_maintenance_data', function( $data ) {
        $data['heading'] = 'My Site Name';
        $data['status'] = 'Updating...';
        $data['message'] = 'We are deploying a new version. Back in a few minutes.';
        return $data;
    } );
    ```

Add a custom cache plugin:

    ```
    add_filter( 'ayudawp_anticache_cache_plugins', function( $plugins ) {
        $plugins['my-cache/my-cache.php'] = array(
            'name' => 'My Cache Plugin',
            'type' => 'cache',
        );
        return $plugins;
    } );<h3>Support</h3>
    ```

#### Need help or have suggestions?

 * [Official website](https://servicios.ayudawp.com/)
 * [WordPress support forum](https://wordpress.org/support/plugin/anticache/)
 * [YouTube channel](https://www.youtube.com/AyudaWordPressES)
 * [Documentation and tutorials](https://ayudawp.com/)

**Love the plugin?** Please leave us a 5-star review and help spread the word!

### About AyudaWP

We are specialists in WordPress security, SEO, and performance optimization plugins.
We create tools that solve real problems for WordPress site owners while maintaining
the highest coding standards and accessibility requirements.

## 螢幕擷圖

 * [[
 * Admin dashboard with status overview and quick actions
 * [[
 * Detailed activation notice showing all changes made
 * [[
 * Professional maintenance page for visitors
 * [[
 * Unified admin bar indicator with maintenance toggle
 * [[
 * Disabled plugins information panel

## 安裝方式

 1. Upload the plugin files to `/wp-content/plugins/anticache/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. The plugin will automatically flush caches, enable debug mode, and inject .htaccess
    rules
 4. Visit Tools > Anti-Cache Kit to manage options
 5. **Important**: Deactivate when finished developing

## 常見問題集

### Is this safe to use on a live website?

Yes, with caveats. PHP-level anti-cache measures only affect administrators. However,
the .htaccess rules affect all visitors to ensure complete cache bypass. Use maintenance
mode to show a status page to visitors during development. Always deactivate when
finished.

### Why does it deactivate optimization plugins?

Optimization plugins like Perfmatters, FlyingPress, and WP Asset CleanUp modify 
how CSS, JS, and other assets are loaded. During debugging, you need to see the 
unmodified output to identify issues. These plugins are temporarily deactivated.
Reactivate them manually from the Plugins page when you are done.

### What happens to my wp-config.php and .htaccess?

Both files are automatically backed up with timestamps before modification. When
you deactivate the plugin, originals are restored from backup. Backups are kept 
for reference in the plugin’s backup/ directory until the plugin is deleted.

### Why does maintenance mode not show in incognito?

Version 4.0 injects .htaccess rules that disable server-level caching and sends 
aggressive cache-busting headers (including CDN and proxy bypass headers) to ensure
the maintenance page is always served correctly.

### Can I customize the maintenance page?

Yes. Use the `ayudawp_anticache_maintenance_data` filter to customize heading, status
text, message, and retry text.

### Can I add support for custom cache plugins?

Yes. Use the `ayudawp_anticache_cache_plugins` filter to add entries to the plugin
list.

## 使用者評論

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

### 󠀁[Essential for maintenance](https://wordpress.org/support/topic/essential-for-maintenance/)󠁿

 [Alvaro Torres](https://profiles.wordpress.org/algato333/) 2026 年 1 月 16 日 1
則留言

An essential tool

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

### 󠀁[Good for maintenance](https://wordpress.org/support/topic/good-for-maintenance/)󠁿

 [Héctor Tellado](https://profiles.wordpress.org/hectortellado/) 2026 年 1 月 12
日

When cache plugins gives problems or cache feels like it is doing weird things it
works great

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

### 󠀁[Útil, rápido y directo](https://wordpress.org/support/topic/util-rapido-y-directo/)󠁿

 [Luis Rull](https://profiles.wordpress.org/luisrull/) 2025 年 9 月 9 日 1 則留言

Casi obligatorio cuando estás arreglando algo en un proyecto de manera puntual… 
Estoy convencido de que será muy útil para tareas más complejas o largas.

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

### 󠀁[Very good](https://wordpress.org/support/topic/very-good-7647/)󠁿

 [Tommaso G. Scibilia](https://profiles.wordpress.org/masino1967/) 2025 年 9 月 
7 日 1 則留言

Very good plugin

 [ 閱讀全部 4 則使用者評論 ](https://wordpress.org/support/plugin/anticache/reviews/)

## 參與者及開發者

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

參與者

 *   [ Fernando Tellado ](https://profiles.wordpress.org/fernandot/)
 *   [ Ayuda WordPress ](https://profiles.wordpress.org/ayudawp/)

〈Anti-Cache Kit〉外掛目前已有 2 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/anticache/contributors)
為這個外掛做出的貢獻。

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

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

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

## 變更記錄

#### 4.1.0

 * Fixed duplicate definitions in wp-config.php causing PHP notices on repeated 
   activations
 * Fixed orphaned if ( ! defined() ) blocks and blank lines in wp-config.php after
   activation
 * Fixed wp-config.php restore losing user’s original debug and cache definitions
 * Fixed MIME type console errors caused by cache-busting applied to non-asset URLs
 * Conflicting definitions are now commented out with [Anti-Cache Kit] marker instead
   of deleted
 * wp-config.php restore is now a plain file copy from backup with no processing
 * WP_DEBUG_DISPLAY set to false: errors go to debug.log instead of displaying on
   screen
 * SCRIPT_DEBUG added to managed constants: commented out on activation, set to 
   true for development
 * Timestamped backups for both wp-config.php and .htaccess (e.g. wp-config-20260402-
   143025.bak)
 * Backups preserved on deactivation for reference (removed only on plugin deletion)
 * Fallback restore that uncomments marked lines when no backup is available
 * Legacy backup filename detection for upgrades from older versions

#### 4.0.1

Tested up to WordPress 7.0

#### 4.0.0

 * Renamed from “Anti-Cache Emergency Kit” to “Anti-Cache Kit”
 * Complete UI redesign with dark card theme on WordPress default background
 * Added optimization plugin deactivation (Perfmatters, FlyingPress, WP Asset CleanUp,
   Object Cache 4 Everyone, WPO Tweaks, Clearfy)
 * Added server-level .htaccess anti-cache rules (SiteGround env vars, browser cache
   headers, ETags, mod_expires)
 * Added automatic .htaccess backup and restoration on deactivation
 * Added early cache-busting headers at plugins_loaded for hosting-level bypass
 * Added CDN/proxy bypass headers (X-Accel-Expires, Surrogate-Control, Vary)
 * Detailed, AJAX-dismissible activation notice showing all changes made
 * Unified admin bar indicator with maintenance toggle and settings dropdown
 * All CSS and JS moved to external files in /assets/ directory
 * Removed all emoji from code and translation strings
 * Self-contained maintenance page with site name as heading and aggressive cache
   prevention
 * Added support for Powered Cache, Comet Cache, and Swift Performance
 * Added Kinsta hosting cache clearing
 * Implemented ayudawp_anticache_cache_plugins filter
 * Added AyudaWP promotional banner with plugin recommendations
 * Fixed maintenance page not visible in incognito
 * Fixed admin notice persistence
 * Improved responsive layout for all screen sizes

#### 3.0.5

 * Updated Cloudflare integration to use new namespace (Cloudflare for WordPress
   v4.14.0+)
 * Maintained backwards compatibility with legacy namespace

#### 3.0.3

 * Added automatic backup of wp-config.php before modifications
 * Added WP_CACHE = false to disable WordPress cache

#### 3.0

 * Added comprehensive admin management panel
 * Added optional maintenance mode for non-logged users
 * Added support for more cache plugins
 * Added object cache clearing

#### 1.0

 * Initial release

## 中繼資料

 *  版本 **4.1.0**
 *  最後更新 **2 個月前**
 *  啟用安裝數 **20+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/anticache/)、[Spanish (Chile)](https://cl.wordpress.org/plugins/anticache/)、
   及 [Spanish (Spain)](https://es.wordpress.org/plugins/anticache/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/anticache)
 * 標籤:
 * [cache](https://tw.wordpress.org/plugins/tags/cache/)[debug](https://tw.wordpress.org/plugins/tags/debug/)
   [development](https://tw.wordpress.org/plugins/tags/development/)[maintenance](https://tw.wordpress.org/plugins/tags/maintenance/)
   [troubleshooting](https://tw.wordpress.org/plugins/tags/troubleshooting/)
 *  [進階檢視](https://tw.wordpress.org/plugins/anticache/advanced/)

## 評分

 5 星，滿分為 5 星

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

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

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

## 參與者

 *   [ Fernando Tellado ](https://profiles.wordpress.org/fernandot/)
 *   [ Ayuda WordPress ](https://profiles.wordpress.org/ayudawp/)

## 技術支援

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

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