{"id":9856261,"date":"2026-11-18T15:27:00","date_gmt":"2026-11-18T14:27:00","guid":{"rendered":"https:\/\/wp-rocket.me\/docs\/desactiver-toutes-les-vidanges-de-cache-automatiques\/"},"modified":"2026-11-18T15:27:00","modified_gmt":"2026-11-18T14:27:00","slug":"desactiver-toutes-les-vidanges-de-cache-automatiques","status":"publish","type":"docs_hub","link":"https:\/\/wp-rocket.me\/fr\/docs\/desactiver-toutes-les-vidanges-de-cache-automatiques\/","title":{"rendered":"D\u00e9sactiver toutes les suppressions de cache automatiques"},"content":{"rendered":"<p>\n\t\t Automatic cache management is one of WP Rocket&rsquo;s most sophisticated features. We&rsquo;ve put a lot of thought into which actions performed on a WordPress site should cause the plugin to clear either the entire cache or parts of it.&nbsp;<\/p>\n<p>\n\t<strong>In 99% of cases, leaving this delicate software component intact is probably the best option.<\/strong> \ud83d\ude42<\/p>\n<p>\n\tHowever, if you are determined to disable all automatic cache deletions, you should first read this documentation before proceeding: <a href=\"https:\/\/wp-rocket.me\/fr\/docs\/intervalle-cache\/\">How often is the cache updated?<\/a><\/p>\n<h2>Help plugin<\/h2>\n<p>\n\t\t Once you are sure you want to do this, install and activate this small helper plugin.<\/p>\n<p>\n\t<strong>Note:<\/strong> &nbsp;This plugin does not disable the <em>Cache Cleanup Timeout<\/em> setting , so if you want to avoid this as well, <strong>you should set it to 0<\/strong> .&nbsp;<\/p>\n<p class=\"callout-download wpr-plugin-download\">\n\t\t \ud83d\udce5&nbsp; <strong>T\u00e9l\u00e9charger (.zip):<\/strong> <a href=\"https:\/\/github.com\/wp-media\/wp-rocket-helpers\/raw\/refs\/heads\/master\/cache\/wp-rocket-no-cache-auto-purge\/wp-rocket-no-cache-auto-purge.zip\" target=\"_blank\" rel=\"noopener\">WP Rocket | Disable Cache Clearing<\/a><\/p>\n<p>\n\t<em>Developers: you can find the <a href=\"https:\/\/github.com\/wp-media\/wp-rocket-helpers\/tree\/master\/cache\/wp-rocket-no-cache-auto-purge\" target=\"_blank\" rel=\"noopener\">code for this plugin on GitHub<\/a> .<\/em><\/p>\n<p class=\"callout-yellow\">\n\t<strong>Warning!<\/strong> When you activate this plugin, WP Rocket will cache your pages but will no longer automatically clear your cache when you make changes! This can lead to outdated or obsolete content on your site, so be careful! <\/p>\n<p>\tIf you encounter problems (forms not working, AJAX errors, etc.), you will likely need to clear the cache periodically. Please read <a href=\"https:\/\/wp-rocket.me\/fr\/docs\/comment-vider-le-cache-via-une-tache-cron\/\">How to clear the cache via a Cron job<\/a><\/p>\n<h3 id=\"disable-homepage-clearing-on-manual-page-clearing\">Disable the deletion of the homepage when clearing the cache<\/h3>\n<p>\n\tWhen you clear the cache for a post, WP Rocket automatically clears the cache for the homepage. This happens regardless of whether the above helper plugin is installed or not.<\/p>\n<p>\n\tThis default behavior of WP Rocket is intentional because changes to subpages usually mean that the homepage also needs to be updated.<\/p>\n<p>\n\tHowever, if you wish to disable this behavior and prevent the homepage cache from being cleared when other content is cleared, you can<br \/>\n\t add the following code snippet <a href=\"https:\/\/wp-rocket.me\/fr\/docs\/ajouter-extraits-code\/\" target=\"_blank\" rel=\"noopener\">to your site :<\/a><\/p>\n<pre>add_filter( 'rocket_clean_home_after_clean_post', '__return_false' );\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Automatic cache management is one of WP&nbsp;Rocket&rsquo;s most sophisticated features. We&rsquo;ve put a lot of thought into which actions performed on a WordPress site should cause the plugin to clear either the entire cache or parts of it.&nbsp; In&hellip;<\/p>\n","protected":false},"template":"","docs_hub_category":[238],"docs_hub_tag":[343],"class_list":["post-9856261","docs_hub","type-docs_hub","status-publish","hentry","docs_hub_category-fonctionnalites-optimisation","docs_hub_tag-cache-de-page"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>D\u00e9sactiver toutes les suppressions de cache automatiques - WP Rocket<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wp-rocket.me\/fr\/docs\/desactiver-toutes-les-vidanges-de-cache-automatiques\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"D\u00e9sactiver toutes les suppressions de cache automatiques - WP Rocket\" \/>\n<meta property=\"og:description\" content=\"Automatic cache management is one of WP&nbsp;Rocket&#039;s most sophisticated features. We&#039;ve put a lot of thought into which actions performed on a WordPress site should cause the plugin to clear either the entire cache or parts of it.&nbsp; In&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wp-rocket.me\/fr\/docs\/desactiver-toutes-les-vidanges-de-cache-automatiques\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Rocket\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/10\/1200x800-Featured-Image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2048\" \/>\n\t<meta property=\"og:image:height\" content=\"1365\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:label1\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wp-rocket.me\\\/fr\\\/docs\\\/desactiver-toutes-les-vidanges-de-cache-automatiques\\\/\",\"url\":\"https:\\\/\\\/wp-rocket.me\\\/fr\\\/docs\\\/desactiver-toutes-les-vidanges-de-cache-automatiques\\\/\",\"name\":\"D\u00e9sactiver toutes les suppressions de cache automatiques - WP Rocket\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wp-rocket.me\\\/#website\"},\"datePublished\":\"2026-11-18T14:27:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wp-rocket.me\\\/fr\\\/docs\\\/desactiver-toutes-les-vidanges-de-cache-automatiques\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wp-rocket.me\\\/fr\\\/docs\\\/desactiver-toutes-les-vidanges-de-cache-automatiques\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wp-rocket.me\\\/fr\\\/docs\\\/desactiver-toutes-les-vidanges-de-cache-automatiques\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/wp-rocket.me\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documentation\",\"item\":\"https:\\\/\\\/wp-rocket.me\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"D\u00e9sactiver toutes les suppressions de cache automatiques\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wp-rocket.me\\\/#website\",\"url\":\"https:\\\/\\\/wp-rocket.me\\\/\",\"name\":\"WP Rocket\",\"description\":\"Plugin d&#039;optimisation de sites WordPress\",\"publisher\":{\"@id\":\"https:\\\/\\\/wp-rocket.me\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wp-rocket.me\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/wp-rocket.me\\\/#organization\",\"name\":\"WP Rocket\",\"url\":\"https:\\\/\\\/wp-rocket.me\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/wp-rocket.me\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/wp-rocket.me\\\/wp-content\\\/uploads\\\/1\\\/logo-wp-rocket-paypal-2.png\",\"contentUrl\":\"https:\\\/\\\/wp-rocket.me\\\/wp-content\\\/uploads\\\/1\\\/logo-wp-rocket-paypal-2.png\",\"width\":150,\"height\":41,\"caption\":\"WP Rocket\"},\"image\":{\"@id\":\"https:\\\/\\\/wp-rocket.me\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/pages\\\/WP-Rocket\\\/631942253526829\",\"https:\\\/\\\/x.com\\\/wp_rocket\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UC1ozThXHd1IWIZ5wkshgp_Q\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"D\u00e9sactiver toutes les suppressions de cache automatiques - WP Rocket","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wp-rocket.me\/fr\/docs\/desactiver-toutes-les-vidanges-de-cache-automatiques\/","og_locale":"fr_FR","og_type":"article","og_title":"D\u00e9sactiver toutes les suppressions de cache automatiques - WP Rocket","og_description":"Automatic cache management is one of WP&nbsp;Rocket's most sophisticated features. We've put a lot of thought into which actions performed on a WordPress site should cause the plugin to clear either the entire cache or parts of it.&nbsp; In&hellip;","og_url":"https:\/\/wp-rocket.me\/fr\/docs\/desactiver-toutes-les-vidanges-de-cache-automatiques\/","og_site_name":"WP Rocket","article_publisher":"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","og_image":[{"width":2048,"height":1365,"url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/10\/1200x800-Featured-Image.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@wp_rocket","twitter_misc":{"Dur\u00e9e de lecture estim\u00e9e":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wp-rocket.me\/fr\/docs\/desactiver-toutes-les-vidanges-de-cache-automatiques\/","url":"https:\/\/wp-rocket.me\/fr\/docs\/desactiver-toutes-les-vidanges-de-cache-automatiques\/","name":"D\u00e9sactiver toutes les suppressions de cache automatiques - WP Rocket","isPartOf":{"@id":"https:\/\/wp-rocket.me\/#website"},"datePublished":"2026-11-18T14:27:00+00:00","breadcrumb":{"@id":"https:\/\/wp-rocket.me\/fr\/docs\/desactiver-toutes-les-vidanges-de-cache-automatiques\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wp-rocket.me\/fr\/docs\/desactiver-toutes-les-vidanges-de-cache-automatiques\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wp-rocket.me\/fr\/docs\/desactiver-toutes-les-vidanges-de-cache-automatiques\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/wp-rocket.me\/fr\/"},{"@type":"ListItem","position":2,"name":"Documentation","item":"https:\/\/wp-rocket.me\/docs\/"},{"@type":"ListItem","position":3,"name":"D\u00e9sactiver toutes les suppressions de cache automatiques"}]},{"@type":"WebSite","@id":"https:\/\/wp-rocket.me\/#website","url":"https:\/\/wp-rocket.me\/","name":"WP Rocket","description":"Plugin d&#039;optimisation de sites WordPress","publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wp-rocket.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/wp-rocket.me\/#organization","name":"WP Rocket","url":"https:\/\/wp-rocket.me\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","width":150,"height":41,"caption":"WP Rocket"},"image":{"@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","https:\/\/x.com\/wp_rocket","https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q"]}]}},"_links":{"self":[{"href":"https:\/\/wp-rocket.me\/fr\/wp-json\/wp\/v2\/docs_hub\/9856261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp-rocket.me\/fr\/wp-json\/wp\/v2\/docs_hub"}],"about":[{"href":"https:\/\/wp-rocket.me\/fr\/wp-json\/wp\/v2\/types\/docs_hub"}],"version-history":[{"count":0,"href":"https:\/\/wp-rocket.me\/fr\/wp-json\/wp\/v2\/docs_hub\/9856261\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp-rocket.me\/fr\/wp-json\/wp\/v2\/media?parent=9856261"}],"wp:term":[{"taxonomy":"docs_hub_category","embeddable":true,"href":"https:\/\/wp-rocket.me\/fr\/wp-json\/wp\/v2\/docs_hub_category?post=9856261"},{"taxonomy":"docs_hub_tag","embeddable":true,"href":"https:\/\/wp-rocket.me\/fr\/wp-json\/wp\/v2\/docs_hub_tag?post=9856261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}