Skip to content

Commit 0da65a6

Browse files
authored
[CICD-77] Prevent plugin and theme conflicts from adversely affecting cache clear (#29)
* Skip loading plugins and themes for cache clear * Add changeset
1 parent 3da79c8 commit 0da65a6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/good-pears-play.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@wpengine/github-action-wpe-site-deploy": patch
3+
---
4+
5+
Prevent plugin and theme conflicts from adversely affecting cache clear

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ fi
8080

8181
# post deploy cache clear
8282
if [ "${INPUT_CACHE_CLEAR^^}" == "TRUE" ]; then
83-
CACHE_CLEAR="&& wp page-cache flush"
83+
CACHE_CLEAR="&& wp --skip-plugins --skip-themes page-cache flush"
8484
elif [ "${INPUT_CACHE_CLEAR^^}" == "FALSE" ]; then
8585
CACHE_CLEAR=""
8686
else echo "CACHE_CLEAR must be TRUE or FALSE only... Cache not cleared..." && exit 1;

0 commit comments

Comments
 (0)