[Rails] Re: Caching comments: timestamps and subdomains

2009-12-17 Thread jhaagmans
Is there a way to explicitly say where to cache a fragment in the memory (e.g. cache('/home/index/feed') do .. end ) and expire it the same way (e.g. expire_fragment('/home/index/feed') ) ? On 17 dec, 11:47, jhaagmans wrote: > > - When expiring a cached fragment, it sends along the subdomain. Thi

[Rails] Re: Caching comments: timestamps and subdomains

2009-12-17 Thread jhaagmans
> - When expiring a cached fragment, it sends along the subdomain. This > means that when I create a comment atwww.domain.com/comment/create, > it will expire the cache forwww.domain.com, but not for domain.com. I > don't want it to store two different cached fragments for www and non- > www, as th

[Rails] Re: Caching comments: timestamps and subdomains

2009-12-17 Thread jhaagmans
Yes, I've thought about that. Thanks for pointing me to that library. There's no Rails way around it though? Thanks again :) On Dec 17, 12:47 am, Agustin Nicolas Viñao Laseras wrote: > With the first problem, you can do something like this: > > In the coment render the datetime when they create,

Re: [Rails] Re: Caching comments: timestamps and subdomains

2009-12-16 Thread Agustin Nicolas Viñao Laseras
With the first problem, you can do something like this: In the coment render the datetime when they create, like this: *user1 make a coment 2009-12-16 20:44* and with jquery (if you use jquery) you can transform the datetime to "time ago" format with this library: http://timeago.yarp.com/ Like

[Rails] Re: Caching comments: timestamps and subdomains

2009-12-16 Thread jhaagmans
> - When expiring a cached fragment, it sends along the subdomain. This > means that when I create a comment atwww.domain.com/comment/create, > it will expire the cache forwww.domain.com, but not for domain.com. I > don't want it to store two different cached fragments for www and non- > www, as th