Use code from ActionPack 3.2.12 caching layer