Vheissu / Ci-Smarty

Smarty templating engine integration for Codeigniter 3.0+ with inbuilt theming and asset management.
http://ilikekillnerds.com
179 stars 43 forks source link

Problem with cache config #34

Closed mytharcher closed 10 years ago

mytharcher commented 10 years ago

When I use this library to render a same template with different data (just like a paged list), the result never change after first rendering. I try to set $config['cache_status'] to FALSE, then everything goes well.

So I am wondering what was done by the cache? Why different data was cached? Or if I missed something?

Vheissu commented 10 years ago

This is really strange. I am guessing Smarty by default will cache a template of the same name if used twice. I would argue if your page is dynamic, you probably shouldn't be caching it as you're not getting any advantage of a template constantly changing.