Twig Cache:缓存到底是什么?

时间:2013-12-17 16:26:26

标签: caching twig template-engine silex

我正在使用Twig模板测试Silex框架(不使用Symfony 2框架)。我看到打开Twig缓存确实加快了40%,但我的问题是什么东西被缓存?它只缓存HTML结构吗? PHP的file_get_contents()函数从数据库和/或文本文件加载的动态数据怎么样?

我还有关于auto_reload选项的问题,从它的文档

"auto_reload: When developing with Twig, 
it's useful to recompile the template whenever
the source code changes. If you don't provide a
value for the auto_reload option, it will be
determined automatically based on the debug value."

这里的源代码是指什么?数据还是HTML结构?是否取决于如何为显示定义Twig过滤器标签?

谢谢。

0 个答案:

没有答案