03 Sep '12, 11am

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.

Full article: http://www.rubyflow.com/items/8140-cacheable_attr

Tweets