From a9741dfe3172dfaed828d1eb153fea737ab60053 Mon Sep 17 00:00:00 2001 From: Paul Bob Date: Wed, 18 Oct 2023 12:09:20 +0300 Subject: [PATCH] template --- lib/generators/avo/templates/initializer/avo.tt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/generators/avo/templates/initializer/avo.tt b/lib/generators/avo/templates/initializer/avo.tt index a30808a647..f2e787644d 100644 --- a/lib/generators/avo/templates/initializer/avo.tt +++ b/lib/generators/avo/templates/initializer/avo.tt @@ -47,6 +47,13 @@ Avo.configure do |config| # config.per_page_steps = [12, 24, 48, 72] # config.via_per_page = 8 # config.id_links_to_resource = false + + ## == Cache options == + ## Provide a lambda to customize the cache store used by Avo. + ## We compute the cache store by default, this is NOT the default, just an example. + # config.cache_store = -> { + # ActiveSupport::Cache.lookup_store(:solid_cache_store) + # } # config.cache_resources_on_index_view = true ## permanent enable or disable cache_resource_filters, default value is false # config.cache_resource_filters = false