File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -706,6 +706,26 @@ Clear all caches everywhere:
706706
707707 $ php bin/console cache:pool:clear cache.global_clearer
708708
709+ Clear cache by tag(s):
710+
711+ .. versionadded :: 6.1
712+
713+ The ``cache:pool:invalidate-tags `` command was added in Symfony 6.1.
714+
715+ .. code-block :: terminal
716+
717+ # invalidate tag1 from all taggable pools
718+ $ php bin/console cache:pool:invalidate-tags tag1
719+
720+ # invalidate tag1 & tag2 from all taggable pools
721+ $ php bin/console cache:pool:invalidate-tags tag1 tag2
722+
723+ # invalidate tag1 & tag2 from cache.app pool
724+ $ php bin/console cache:pool:invalidate-tags tag1 tag2 --pool=cache.app
725+
726+ # invalidate tag1 & tag2 from cache1 & cache2 pools
727+ $ php bin/console cache:pool:invalidate-tags tag1 tag2 -p cache1 -p cache2
728+
709729 Encrypting the Cache
710730--------------------
711731
You can’t perform that action at this time.
0 commit comments