From ea2fe6281fd453a33ed63889e2fa1deded0bc734 Mon Sep 17 00:00:00 2001 From: jwollert Date: Thu, 7 Apr 2011 12:48:31 +0200 Subject: [PATCH] cache? dont cache --- lib/widget/table/progressbar.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/widget/table/progressbar.rb b/lib/widget/table/progressbar.rb index da9c4f3bc6..b5679beb1c 100644 --- a/lib/widget/table/progressbar.rb +++ b/lib/widget/table/progressbar.rb @@ -1,9 +1,7 @@ class Widget::Table::Progressbar < Widget::Base THRESHHOLD = 500 - def cache? - false - end + dont_cache! def render if Widget::Table::ReportTable.new(@query).cached? || (size = @query.size) <= THRESHHOLD