RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

Easy Rails cache expiry

Cache expiry can be a bit complicated to setup with memcache, but I've released a _very_ small plugin that adds simple cache expiry to the rails filestore cache, no extra processes required - perfect for shared hosting (or lazy coders). E.g. cache({:controller => 'mycontroller', etc.}, {:expires_in => 1.day}). So easy it's (not) a crime.
Get it here: http://github.com/adamsalter/filestore_expires_in-plugin

Comments

Post a Comment

Note: If you are a registered user, you can log in to populate these fields.

You may use ONLY these HTML tags to format your comment:

<a href="" title=""> <b> <blockquote> <code> <em> <i> <strong>

Do NOT use <p> tags. Just use newlines :-)

b
e
n
E willy
c
W bum
o
d
K bum
e
d
u
M willy
p
C bum