What's the recommended way to handle users making changes on production? #12288
stephenmeehanuk
started this conversation in
General
Replies: 2 comments 4 replies
-
What are your invalidation rules? |
Beta Was this translation helpful? Give feedback.
4 replies
-
Silly question, @stephenmeehanuk, but I'm curious what your hosting situation is? Are you able to profile the site to determine what pages are the most problematic and performance-intensive? I've ran into similar situations with other frameworks and CMSs and I've found the most ideal solution is either:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I've setup Redis and queues - which work great when I deploy changes. Pages are nicely cached.
But the site often 504s, this seems to coincide with when the client makes updates to the site.
The site isn't constantly throwing 504s, so I'm reasonably confident this is the reason.
It's a big site, and many pages are fairly 'meaty', they really benefit from being cached.
I've got a bunch of
invalidation
rules, which essentially clear the page cache (or most of it) anytime a change is made.What I think is happening
When then site is being edited, the page cache is cleared, during this time the site is still being visited. But the first visit is uncached, and I'm seeing timeouts.
Sometimes there could be two users making edits to different parts of the website at the same time. Every time an edit is saved the
invalidation
rules clear the cache.So there's this temporary storm every couple of days when the site 504s for a bit.
Does this sound likely?
What can I do?
I can see there's a
STATAMIC_GIT_DISPATCH_DELAY=10
config, but how does that work? I assume this is related to just Git commits? And wouldn't help with the page cache issue?Is there a way to delay all updates to the site and run them all in one hit at a quiet time of day?
Any suggestions, ideas would be most welcome :)
Beta Was this translation helpful? Give feedback.
All reactions