Created
February 5, 2015 14:00
-
-
Save aertmann/14820c4e234515eaf7ae to your computer and use it in GitHub Desktop.
Clear caches when deploying using Surf with custom cache backends
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
$workflow->defineTask('typo3.surf:shell:clearRedisCaches', | |
'typo3.surf:shell', | |
array('command' => 'cd {releasePath} && FLOW_CONTEXT=Production/Live ./flow cache:flushone TYPO3_TypoScript_Content && FLOW_CONTEXT=Production/Live ./flow cache:flushone Flow_Mvc_Routing_Resolve && FLOW_CONTEXT=Production/Live ./flow cache:flushone Flow_Mvc_Routing_Route') | |
); | |
$workflow->beforeStage('switch', array('typo3.surf:shell:clearRedisCaches'), $application); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment