[1.0][WIP][cache] Improve caches invalidation V2.

This PR follows @havvg suggestions given in [the discussoion](https://github.com/liip/LiipImagineBundle/pull/302#discussion_r8997633).