Symfony默认使用文本格式存储cache,另外还可以选择SQLite来存储cache,这样简单的数据库系统对存储cache来说效率非常高。
打开factories.yml文件,设置一下参数。

view_cache:
class: sfSQLiteCache
param:
database: %SF_TEMPLATE_CACHE_DIR%/cache.db

如果原来的系统大量的使用了cache,不妨改为SQLite为cache的存储,性能可能会有所改善哦。

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2011 刘敏的Blog Suffusion theme by Sayontan Sinha