Clearing page cache relies on WP CLI. When we call wp page-cache flush, the WP CLI bootstrap process loads all of WordPress, including active plugins and themes. If any of the loaded plugins or themes contain errors, those will cause the page cache clear to either fail or hang indefinitely. This results in a "failed" deploy status even if the code was successfully updated.
We don't need to load plugins and themes to successfully clear cache, so we can set flags to ignore them.
JIRA Ticket
CICD-77
What Are We Doing Here
Clearing page cache relies on WP CLI. When we call
wp page-cache flush
, the WP CLI bootstrap process loads all of WordPress, including active plugins and themes. If any of the loaded plugins or themes contain errors, those will cause the page cache clear to either fail or hang indefinitely. This results in a "failed" deploy status even if the code was successfully updated.We don't need to load plugins and themes to successfully clear cache, so we can set flags to ignore them.