From 7cba68f972ce29b6922653388cc4ed556996f1a7 Mon Sep 17 00:00:00 2001 From: JiangRu Date: Mon, 30 Mar 2015 14:57:01 +0800 Subject: [PATCH 1/2] add models_to_cache --- lib/gallery/engine.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gallery/engine.rb b/lib/gallery/engine.rb index 53dc9f6..f92af24 100644 --- a/lib/gallery/engine.rb +++ b/lib/gallery/engine.rb @@ -7,6 +7,7 @@ module Gallery widget_methods ["widget"] # widget_settings [] widget_settings [{"data_count"=>10}] + models_to_cache [:album,:album_image] categorizable authorizable frontend_enabled From 2b0deb224457758d893bb6992851108e005ac14e Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 30 Mar 2015 16:28:50 +0800 Subject: [PATCH 2/2] data limit changed to 30 --- lib/gallery/engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gallery/engine.rb b/lib/gallery/engine.rb index f92af24..efa03e6 100644 --- a/lib/gallery/engine.rb +++ b/lib/gallery/engine.rb @@ -11,7 +11,7 @@ module Gallery categorizable authorizable frontend_enabled - data_count 1..10 + data_count 1..30 side_bar do head_label_i18n 'gallery.gallery', icon_class: "icons-pictures" available_for "users"