rails/rails — Issue #4211: Fragment class for controller caching
Author: gazay
Created: 2011-12-28 04:23:39+00:00
State: open

Hello! I thinking about creating a class for working with cache fragments

https://github.com/rails/rails/commit/71c9337f45f9c5461cbc6ddf6cab764ad0f82c3b#L5R40

It's still relevant?

I want to create something like ActionController::Caching::Fragment class with methods read, write and expire and replace ActionController::Caching::Fragments#read_fragment and write_fragment with find_fragment and create_fragment.

There is some sketches: https://gist.github.com/1526231

What do you think? And should we keep objects of Fragment class in controller instance?