I cache partial templates in my app by registering a fragment store:
register(:fragment_store, Merb::Cache::FileStore, :dir =>
Merb.root / :tmp / :fragments)
and using it in my templates (haml) like:
-fetch_fragment({:cache_key => "some-path/#
{...@some_item.item_identifier}"}) do
=partial 'some_template'
You may have already found this, but there are some docs at:
http://wiki.merbivore.com/cache
Take a look at the example apps at github.
Vince
On Jun 26, 9:52 am, mike <[email protected]> wrote:
> Hi,
> I'd like to partially cache some actions (cache partials by exemple),
> Is there a way to do this in merb ? how ?
>
> Thx.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---