wpengine / github-action-wpe-site-deploy

A GitHub Action to deploy code directly to WP Engine.
MIT License
173 stars 36 forks source link

[CICD-77] Prevent plugin and theme conflicts from adversely affecting cache clear #29

Closed apmatthews closed 2 years ago

apmatthews commented 2 years ago

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.