Skip to content

Commit 5dcc3d9

Browse files
Deploy web app less often to reduce cache invalidation (#2762)
## Motivation for the change, related issues @adamziel mentioned: > I’ve heard PHP Playground takes too long time to load every day – that’s because we use network-first caching strategy. I don’t see an easy way to switch to local-first caching, but we could invalidate the cache less frequently. This seems like a good idea to me. The workflow for updating major and beta WP versions already triggers a deploy if there are changes. And if we need a deploy for any other reason, we can start one manually. ## Implementation details This changes the web app deployment schedule to 1100 UTC on Tuesday. This way, we avoid creating sudden changes at the beginning of everyone's week but have plenty of time to address any issues before the end of the week. ## Testing Instructions (or ideally a Blueprint) - CI - After merge, confirm that the web app is deployed as expected on the following Tuesday and that no other scheduled runs occur. --------- Co-authored-by: Adam Zieliński <adam@adamziel.com>
1 parent a986d64 commit 5dcc3d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-website.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Deploy to playground.wordpress.net
22

33
on:
44
workflow_dispatch:
5-
# Deploy the website every day at 9am and 6pm UTC
5+
# Deploy the website every Tuesday at 11am UTC
66
schedule:
7-
- cron: '0 9,18 * * *'
7+
- cron: '0 11 * * 2'
88

99
concurrency:
1010
group: website-deployment

0 commit comments

Comments
 (0)