Cache Flush At Wrong Place #3882
Replies: 2 comments 4 replies
-
you're probably right @sprankhub we didn't have issues because our pipeline contains a post-deploy step where the cache is cleaned too, but it would make sense to have it done properly by deployer.
that means, |
Beta Was this translation helpful? Give feedback.
1 reply
-
Heh, I think you're right. I just checked our customizations for our pipelines (which are on top of this recipe) and I see we have this in there too;
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is specifically about the Magento 2 recipe, but I saw that the cache flush is at the same spot for most of the recipes, so it might be an issue for more recipes... This is how the deployment tree looks like for Magento 2:
As you can see, the Magento cache is flushed as part of
deploy:magento
, when the new release is prepared. So the cache is flushed when thecurrent
symlink still links to the old release. Only in the next stepdeploy:symlink
, the symlink is switched to the new version. When you have a lot of requests on your system, there will most probably also be a request between themagento:cache:flush
task and thedeploy:symlink
task. This means the cache will, after it has just been cleared, directly be filled with old data again. This regularly leads to issues to us, so that we manually need to run a cache flush after deployment manually. This fixes the issue to us:So, my question is, shouldn't the Magento cache be flushed after the symlink has been switched to the new version? Am I missing something?
By the way, this issue is neither an OPcache issue nor fixed with the
magento:set_cache_prefix
task.Ccing the active Magento Deployer people: @Schrank @peterjaap @schmengler @wilfriedwolf
Beta Was this translation helpful? Give feedback.
All reactions