RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  


I published cacheable_attr about two months ago and finally found time to post up here.

Simply declare an attribute as cacheable with a TTL and define a method with that attribute name with "_uncached" at the end of the method name. This allows you to bypass caching at anytime by calling the "uncached" method, if needed.


Post a Comment

Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spam problem. Sorry!