Reputation: 102765
Is there a way to extend Symfony 2 cache:clear
command to clear APC as well or to do some other logic?
Upvotes: 2
Views: 3009
Reputation: 81
While ApcBundle will clear the cache, it will do so through a web endpoint, which you have to configure in the router and in webserver). CacheToolBundle will register Symfony2 commands which you can use to clear the cache without having to setup the webserver.
You can check it out here: https://github.com/gordalina/CacheToolBundle
Upvotes: 0