Merge remote-tracking branch 'finn/feature/streaming_widgets' into feature/progress_report

pull/6827/head
jwollert 14 years ago
commit 0fed485aa1
  1. 2
      lib/widget/base.rb

@ -53,7 +53,7 @@ class Widget::Base < Widget
# Render this widget or serve it from cache
def render_with_cache(options = {}, &block)
if Rails.cache.exist? cache_key and cache?
Rails.cache.fetch(cache_key)
write Rails.cache.fetch(cache_key)
else
render(&block)
Rails.cache.write(cache_key, @cache_output || @output)

Loading…
Cancel
Save