Title: Anti-Cache Kit
Author: Fernando Tellado
Published: <strong>2025-يىلى 6-سېنتەبىر</strong>
Last modified: 2026-يىلى 27-ئىيۇن

---

قىستۇرما ئىزدە

![](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.2.0.zip)

[شۇئان ئالدىن كۆزىتىش](https://ug.wordpress.org/plugins/anticache/?preview=1)

 * [تەپسىلاتلار](https://ug.wordpress.org/plugins/anticache/#description)
 * [باھالاشلار](https://ug.wordpress.org/plugins/anticache/#reviews)
 *  [ئورنىتىش](https://ug.wordpress.org/plugins/anticache/#installation)
 * [ئىجادىيەت](https://ug.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, flushes, and deactivates 20+ cache plugins
 * Removes cache drop-ins (object-cache.php) so caches that keep working through
   a drop-in actually stop
 * Deactivates optimization plugins that interfere with debugging (Perfmatters, 
   FlyingPress, WP Asset CleanUp, and more)
 * Never deactivates Query Monitor, the debugging tool you need while troubleshooting
 * Clears object cache (Redis, Memcached) and OPcache
 * Clears hosting-specific caches (SiteGround, Cloudflare, Kinsta, and Varnish on
   demand)
 * Prevents browser caching for administrators

**Server-level cache prevention**

 * Injects .htaccess rules via the WordPress markers API, no backup file needed
 * Disables 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)
 * Detects nginx and Caddy and skips rules that would not apply there, offering 
   an equivalent nginx snippet to copy instead
 * Cleanly removes only its own rules on deactivation, leaving the rest of .htaccess
   untouched

**Debug mode activation**

 * Enables WP_DEBUG, WP_DEBUG_LOG, and SCRIPT_DEBUG (errors go to wp-content/debug.
   log)
 * Sets WP_DEBUG_DISPLAY to false so errors are logged, not shown on screen
 * Disables WordPress cache (WP_CACHE = false)
 * Comments out conflicting definitions with visible markers instead of deleting
   them
 * Wraps its own definitions in markers and reverts them on deactivation, preserving
   any WP_DEBUG, WP_CACHE or SCRIPT_DEBUG you had set yourself
 * Modifies wp-config.php with the WordPress Filesystem API, validates the result
   before writing, and never keeps a copy of your credentials on disk

**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)

**Safety and environment**

 * Detects production sites with wp_get_environment_type() and shows a dismissible
   warning, plus a red dot in the admin bar
 * Status panel reflects the real state: debug constants, server rules, detected
   environment, and whether wp-config.php is writable
 * Removes its options and any leftover backup directory from older versions on 
   uninstall

#### 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
 * Nginx Helper
 * NitroPack
 * SpinupWP
 * Docket Cache
 * Object Cache Pro

#### Supported optimization plugins

 * Perfmatters
 * FlyingPress
 * WP Asset CleanUp
 * Object Cache 4 Everyone
 * DietPress (WPO Tweaks)
 * Clearfy Cache
 * EWWW Image Optimizer
 * ShortPixel Image Optimizer

#### Supported hosting caches

 * SiteGround (via .htaccess environment variables and plugin API)
 * Cloudflare (both new and legacy namespaces)
 * Kinsta
 * Varnish (opt-in, best-effort PURGE/BAN when detected)
 * 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
 * `ayudawp_anticache_purge_varnish` – Filter to force the opt-in Varnish purge 
   on or off (return true or false)

#### 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 private support or custom development?

Do you need one-on-one help, priority troubleshooting, or a custom feature, integration,
or tweak built specifically for your site? I offer private support and custom development.
Just [contact me](https://ug.wordpress.org/plugins/anticache/anticache@ayudawp.com?output_format=md)
and tell me what you need.

#### 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⌉⌊Admin dashboard with status
overview and quick actions⌉[

Admin dashboard with status overview and quick actions

[⌊Detailed activation notice showing all changes made⌉⌊Detailed activation notice
showing all changes made⌉[

Detailed activation notice showing all changes made

[⌊Professional maintenance page for visitors⌉⌊Professional maintenance page for 
visitors⌉[

Professional maintenance page for visitors

[⌊Unified admin bar indicator with maintenance toggle⌉⌊Unified admin bar indicator
with maintenance toggle⌉[

Unified admin bar indicator with maintenance toggle

[⌊Disabled plugins information panel⌉⌊Disabled plugins information panel⌉[

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

## FAQ

### 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. On production sites the
plugin shows a clear warning so you do not forget it is active. 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?

The plugin edits both files in place. It wraps its own changes in clearly marked
blocks and comments out (never deletes) any of your settings that conflict. On deactivation
it removes only its own block and restores your original lines, so your own definitions
are preserved. It never keeps a copy of wp-config.php on disk, so your database 
credentials are never exposed.

### 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.

### The .htaccess rules show as «N/A» – why?

Your server (nginx or Caddy) does not read .htaccess files, so the rules would have
no effect and the kit does not write them. The settings panel shows an equivalent
nginx snippet you can add to your server configuration and reload.

### How do I purge a Varnish cache?

Enable «Purge Varnish» in the settings panel. When you flush caches, the kit detects
Varnish from the response headers and sends a best-effort PURGE/BAN to your site
root. It is off by default and never runs on servers without Varnish.

## باھالاشلار

![](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-يىلى 16-يانۋار 
1 reply

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-يىلى 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-سېنتەبىر 1 reply

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-يىلى 7-سېنتەبىر
1 reply

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.2.0

 * New: nginx and Caddy detection. The kit no longer writes dead .htaccess rules
   where they have no effect; it shows N/A and offers an equivalent nginx snippet
   to copy
 * New: production-environment warning (dismissible notice, red admin bar dot, and
   status card) when WP_ENVIRONMENT_TYPE is production
 * New: opt-in Varnish purge (best-effort PURGE/BAN to the site root, only when 
   Varnish is detected)
 * New: uninstall.php that removes the plugin options and any legacy backup directory
 * New: cache drop-in removal so Object Cache 4 Everyone actually stops (its object-
   cache.php drop-in is removed on deactivation)
 * New: detection of more plugins (Nginx Helper, NitroPack, SpinupWP, Docket Cache,
   Object Cache Pro, EWWW Image Optimizer, ShortPixel)
 * New: the status card now shows the environment and whether wp-config.php is writable
 * Improved: wp-config.php and .htaccess changes are reverted via markers and are
   no longer copied to a web-accessible backup folder, removing the risk of exposing
   database credentials. Any backup directory from older versions is deleted
 * Improved: Query Monitor is never deactivated, and the kit reports its actions
   to Query Monitor
 * Improved: wp-config.php is validated before writing and written crash-safe (temporary
   file then move), with more robust handling of conflicting definitions and a safer
   insertion point
 * Improved: the activation notice now requires the manage_options capability, the
   admin panel uses the WordPress Filesystem API, and error-suppression operators
   were removed for a clean Plugin Check
 * Improved: synchronized the AyudaWP recommendations banner with the current catalog
 * Improved: minimum WordPress raised to 5.5 to use the native environment detection(
   wp_get_environment_type)
 * Fix: deactivation could remove WP_DEBUG, WP_CACHE or SCRIPT_DEBUG definitions
   the user had set themselves. Only the plugin’s own block is removed now
 * Fix: corrected wrong plugin display names (Clearfy Cache, DietPress)
 * Fix: the maintenance page auto-reload now matches the 30-minute Retry-After value

For older changelog entries, please check the [changelog.txt](https://plugins.svn.wordpress.org/anticache/trunk/changelog.txt)
file

## Meta

 *  Version **4.2.0**
 *  ئاخىرقى يېڭىلانغان ۋاقىت **14 مىنۇت بۇرۇن**
 *  ئاكتىپ ئورنىتىش سانى **20+**
 *  WordPress نەشرى ** 5.5 ياكى يۇقىرى **
 *  **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://ug.wordpress.org/plugins/tags/cache/)[debug](https://ug.wordpress.org/plugins/tags/debug/)
   [development](https://ug.wordpress.org/plugins/tags/development/)[maintenance](https://ug.wordpress.org/plugins/tags/maintenance/)
   [troubleshooting](https://ug.wordpress.org/plugins/tags/troubleshooting/)
 *  [ئالىي كۆرۈنۈش](https://ug.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/)