You're md5'ing the template source here, and that's not going to work. Should be passing in `Mustache_Engine::getTemplateClassName` as the cache key.