RubyFlow The Ruby and Rails community linklog

cacheable_attr

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in