This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Forked from user dirk; changed to drop the should_render boolean arg and | |
# replace it with a separate method, cache_and_render | |
class ApplicationController < ActionController::Base | |
# Other random stuff. | |
protected | |
def cache_and_render(key, opts = {}) | |
cached = cache(key, opts) |