• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Ocular and Sparks together.

I like the flexibility of Ocular templating library and the caching capability of Sparks but I don't assume they can be used together. If there was a library like Ocuparks (Ocular+Sparks) then that would have done the job. Anyways has any one used these two templting libraries together to render a same view if yes please tell me how is it done. Waiting for responses...

Why would you want to use them together as they are two template libraries?

Ocular is better in partial render but it does not have cache, I need to cache some elements of the page. So this is the need to use them together. I don't think ocular support caching till now. How can I do it? Or if there is a better templating system which is as flexible as ocular and support caching also please suggest me that.

Why not use a cache library if you only want sparks for the caching?

Native CI cache is either on or off not usable for partial caching, ex if its a message block it can be cached but a block that displays user who has logged in can't be cached. So I need partial render and partial cache in same templating library.

There are third party cache libraries that supports partial caching.

Can you name some, but are they as easy to use as Sparks and do they support templating as well?

Sparks cache library
Cache library with memcache support
CachedObjects v1.3

Thanks I'll see into it and If I have a problem will reply here. I need full page and partial (block) cache support, which do you think is the best library for that???

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.