Making changes to support memcache caching in Twig.