Tower
Tower

Reputation: 102765

Extend Symfony 2 cache:clear command to clear APC as well

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

Answers (2)

Samuel Gordalina
Samuel Gordalina

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

Anton Babenko
Anton Babenko

Reputation: 6636

You may use ApcBundle to do this.

Upvotes: 3

Related Questions