Title: Code deployment and cache clearing
Author: WordPress VIP Documentation
Published: June 25, 2024
Last modified: October 16, 2025

---

 1. [Code deployment](https://docs.wpvip.com/code-deployment/)
 2. Code deployment and cache clearing

#  Code deployment and cache clearing

Clearing the entire [object cache](https://docs.wpvip.com/caching/object-cache/)
or [page cache](https://docs.wpvip.com/caching/page-cache/) for a site can negatively
effect the site’s performance, particularly during a high traffic event. For this
reason, when a code deployment occurs only a select group of cache clearing events
will be triggered:

 * Code deployment to a WordPress environment will _not_ cause the object cache 
   to be flushed.
 * Code deployment to a Node.js or WordPress environment will _not_ clear the page
   cache for a site’s cached content responses.
 * Code deployment _will_ cause the page cache to be cleared for any [static asset files that exist within the environment’s deploying branch](https://docs.wpvip.com/caching/static-asset-caching/)
   and the deployment included updated versions of those files.

Last updated: October 16, 2025