Skip to content

Instantly share code, notes, and snippets.

@aertmann
Created February 5, 2015 14:00
Show Gist options
  • Save aertmann/14820c4e234515eaf7ae to your computer and use it in GitHub Desktop.
Save aertmann/14820c4e234515eaf7ae to your computer and use it in GitHub Desktop.
Clear caches when deploying using Surf with custom cache backends
$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