views:

237

answers:

2

Does anyone know if there is an overview of the performance of different cache handlers for smarty?

I compared smarty file cache with a memcache handler, but it seemed memcache has a negative impact on performance.

I figured there would be a faster way to cache than through the filesystem... am I wrong?

A: 

I don't have a systematic answer for you, but in my experience, the file cache is the fastest. I should clarify that I haven't done any serious performance tests, but in all the time I've used Smarty, I have found the file cache to work best.

One this that definitely improves performance is to disable checking if the template files have changed. This avoids having to stat the tpl files.

pocketfullofcheese
A: 

this is because of the overhead of memcache loading does not take into account? a typical top-down design does not make use of memcache parallel fetch

ajreal