Created
December 13, 2019 00:04
-
-
Save erikhansen/f06f0108f92ce164917f02bf336c5e53 to your computer and use it in GitHub Desktop.
Rake file to cache apcu cache upon each deployment. Used in conjunction with https://github.com/davidalger/capistrano-magento2#usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clear APCU (unsure if this is necessary, but playing it on the safe side) | |
after "deploy:published", "cachetool:apcu:clear" do | |
on release_roles :all do | |
within release_path do | |
execute :cachetool, 'apcu:cache:info' | |
execute :cachetool, 'apcu:cache:clear' | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment