sonata-project/SonataCacheBundle — pull request #63 by eko (2014-06-03 14:20:42+00:00)
Title: Add a SymfonyCache Adapter

I've added a `SymfonyCache` adapter to clear Symfony cache (or only a subdirectory of it, for instance translations or twig) on multiple servers.

Here is the configuration:

```yml
sonata_cache:
caches:
symfony:
token: s3cur3 # token used to clear the related cache
servers:
- { domain: kooqit.local, ip: 127.0.0.1, port: 80}
```

This is done as the same way as `ApcCache` with a socket connection making an HTTP call on a specific route secured by a token and used the Symfony `Filesystem` to remove the directory.

I'm open to comments if any //cc @mremi