gacon
gacon

Reputation: 2135

Caching smarty view render

I'm working with Yii framework and using smarty view render. I have to working with simpleXML_load_file to load simpleXML element and it's can not be cache using data caching with memcache provided by Yii. So I think may be using cache of smarty instead of caching data. Anyone here had caching smarty page in Yii framework give me some advises, thank a lot!

Upvotes: 0

Views: 1592

Answers (1)

Sam Dark
Sam Dark

Reputation: 5291

  1. I see no reason data cache will not work with SimpleXML element.
  2. You can try using full page cache.
  3. You can define your own Smarty tags for fragment cache.

Upvotes: 1

Related Questions