Cache support for memcache and Twig cache