Caching 细枝缓存:缓存的是什么?

Caching 细枝缓存:缓存的是什么?,caching,twig,template-engine,silex,Caching,Twig,Template Engine,Silex,我正在用细枝模板测试Silex框架,而不是使用Symfony 2框架。我看到打开细枝缓存的速度确实提高了40%,但我的问题是缓存了哪些内容?它是否只缓存HTML结构?PHP的file_get_contents函数从数据库和/或文本文件加载的动态数据怎么样 我也有关于自动重新加载选项的问题,从它的文档天 "auto_reload: When developing with Twig, it's useful to recompile the template whenever the sourc

我正在用细枝模板测试Silex框架,而不是使用Symfony 2框架。我看到打开细枝缓存的速度确实提高了40%,但我的问题是缓存了哪些内容?它是否只缓存HTML结构?PHP的file_get_contents函数从数据库和/或文本文件加载的动态数据怎么样

我也有关于自动重新加载选项的问题,从它的文档天

"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结构?它是否取决于如何定义用于显示的细枝过滤器标记


谢谢。

它会缓存编译小树枝模板。你可以检查一下你的模板缓存,看看里面有什么。