Descripción
Kit Anti-Caché es una herramienta para desarrolladores y diseñadores de WordPress que necesitan saltarse todos los mecanismos de caché y optimizaciones durante el desarrollo, pruebas o diagnóstico de problemas.
Herramienta únicamente para desarrollo – No lo dejes activo en sitios en producción
Características principales
Gestión de caché y optimizaciones
- 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
- Desactiva plugins de optimización que interfieran con las tareas de depuración (Perfmatters, FlyingPress, WP Asset CleanUp y más)
- Never deactivates Query Monitor, the debugging tool you need while troubleshooting
- Vacía la caché de objetos (Redis, Memcached) y OPcache
- Clears hosting-specific caches (SiteGround, Cloudflare, Kinsta, and Varnish on demand)
- Impide la caché de navegador para administradores
Impedir la caché a nivel de servidor
- Injects .htaccess rules via the WordPress markers API, no backup file needed
- Disables SiteGround cache via environment variables
- Define cabeceras no-cache y no-store a nivel del servidor para todos los visitantes
- Desactiva ETags y mod_expires para impedir cachés condicionales
- Envía cabeceras para saltarse CDNs/proxies (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
Activación del modo de depuración.
- Activa WP_DEBUG, WP_DEBUG_LOG y SCRIPT_DEBUG (los errores van a wp-content/debug.log)
- Sets WP_DEBUG_DISPLAY to false so errors are logged, not shown on screen
- Desactiva la caché de WordPress (WP_CACHE=false)
- Comenta las definiciones que entran en conflicto con marcadores visibles, en lugar de borrarlas
- 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
Modo de mantenimiento
- Página de estado opcional para usuarios no conectados
- Conmutador rápido desde la barra de administración
- Personalizable mediante ganchos de filtro
- Respuesta independiente con cabeceras agresivas para impedir el almacenamiento en caché (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
Plugins de caché compatibles
- 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
- Caché de objetos Redis
- Powered Cache
- Comet Cache
- Swift Performance
- Nginx Helper
- NitroPack
- SpinupWP
- Docket Cache
- Object Cache Pro
Plugins de optimización compatibles
- Perfmatters
- FlyingPress
- WP Asset CleanUp
- Object Cache 4 Everyone
- DietPress (WPO Tweaks)
- Clearfy Cache
- EWWW Image Optimizer
- ShortPixel Image Optimizer
Cachés de alojamiento compatibles
- SiteGround (mediante variables del entorno en .htaccess y API del plugin)
- Cloudflare (namespaces nuevos y antiguos)
- Kinsta
- Varnish (opt-in, best-effort PURGE/BAN when detected)
- Sistemas de caché genérica de alojamientos
Información para desarrolladores
Ganchos y filtros
ayudawp_anticache_maintenance_data– Filtro para personalizar los datos de la página de mantenimiento (encabezado, estado, mensaje, reintento)ayudawp_anticache_cache_plugins– Filtro para modificar la lista de plugins de caché y optimización compatiblesayudawp_anticache_purge_varnish– Filter to force the opt-in Varnish purge on or off (return true or false)
Constantes
AYUDAWP_ANTICACHE_VERSION– Versión del pluginAYUDAWP_ANTICACHE_PLUGIN_DIR– Ruta del directorio del pluginAYUDAWP_ANTICACHE_PLUGIN_URL– URL del directorio del pluginAYUDAWP_ANTICACHE_PLUGIN_BASENAME– El basename del plugin para los ganchos
Ejemplo de código
Personalizar la página de mantenimiento:
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;
} );
Agregar un plugin de caché adicional:
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 and tell me what you need.
¿Necesitas ayuda o tienes sugerencias?
¿Te gusta el plugin? ¡Déjanos un comentario de 5 estrellas y ayuda a correr la voz!
Acerca de AyudaWP
Somos especialistas en plugins de optimización de seguridad, SEO y rendimiento para WordPress. Creamos herramientas que solucionan problemas reales a los propietarios de sitios WordPress manteniendo los más altos estándares de programación y requisitos de accesibilidad.
Capturas de pantalla





Instalación
- Sube los archivos del plugin al directorio
/wp-content/plugins/anticache/. - Activa el plugin a través del menú “Plugins” en WordPress
- El plugin automáticamente vacía cachés, activa el modo de depuración e inyecta reglas en .htaccess
- Visita “Herramientas > Kit Anti-Caché” para gestionar las opciones.
- Importante: Desactívalo cuando termines de desarrollar
FAQ
-
¿Es seguro utilizarlo en un sitio web activo?
-
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.
-
¿Por qué desactiva plugins de optimización?
-
Los plugins de optimización como Perfmatters, FlyingPress y WP Asset CleanUp modifican la forma en que se cargan los archivos CSS, JS y otros recursos. Mientras se realizan tareas de depuración es necesario ver el resultado sin alteraciones para identificar posibles problemas. Estos plugins se desactivan temporalmente. Vuelve a activarlos manualmente desde la página “Plugins” cuando hayas terminado.
-
¿Qué pasa con mis wp-config.php y .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.
-
¿Por qué no se muestra el modo de mantenimiento en el modo incógnito?
-
La versión 4.0 inyecta reglas de .htaccess que desactivan el almacenamiento en caché a nivel del servidor y envía cabeceras agresivas para anular la caché (incluidas cabeceras para eludir CDNs y proxies) con el fin de garantizar que la página de mantenimiento se muestre siempre correctamente.
-
¿Puedo personalizar la página de mantenimiento?
-
Sí. Usa el filtro
ayudawp_anticache_maintenance_datapara personalizar el encabezado y los textos de estado, reintento y el mensaje. -
¿Puedo agregar compatibilidad con plugins de caché adicionales?
-
Sí. Usa el filtro
ayudawp_anticache_cache_pluginspara agregar otros a la lista de plugins. -
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.
Reseñas
Colaboradores & Desarrolladores
“Kit Anti-Caché” es software de código abierto. Las siguientes personas han contribuido a este plugin.
Colaboradores“Kit Anti-Caché” ha sido traducido en 2 idiomas. Gracias a los traductores por sus contribuciones.
Traduce “Kit Anti-Caché” a tu idioma.
¿Interesado en el desarrollo?
Revisa el código, echa un vistazo al repositorio SVN, o suscríbete al registro de desarrollo por RSS .
Historial de cambios
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 file
