Skip to content

Commit

Permalink
add the cache_classes field to the initializer of a new app to be use…
Browse files Browse the repository at this point in the history
…d with secrets
  • Loading branch information
davidbeig committed Oct 28, 2024
1 parent 08d0f69 commit b13a6d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
# this value for that specific organization.
config.default_locale = Rails.application.secrets.decidim[:default_locale].presence || :en

# Enable the cache classes configuration.
config.cache_classes = Rails.application.secrets.decidim[:cache_classes].presence || true

# Restrict access to the system part with an authorized ip list.
# You can use a single ip like ("1.2.3.4"), or an ip subnet like ("1.2.3.4/24")
# You may specify multiple ip in an array ["1.2.3.4", "1.2.3.4/24"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ decidim_default: &decidim_default
base_uploads_path: <%%= Decidim::Env.new("DECIDIM_BASE_UPLOADS_PATH").to_json %>
default_csv_col_sep: <%%= Decidim::Env.new("DECIDIM_DEFAULT_CSV_COL_SEP", ";").to_json %>
consent_cookie_name: <%%= Decidim::Env.new("DECIDIM_CONSENT_COOKIE_NAME", "decidim-consent").to_json %>
cache_classes: <%%= Decidim::Env.new("DECIDIM_CACHE_CLASSES", "true").to_boolean_string %>
cache_key_separator: <%%= Decidim::Env.new("DECIDIM_CACHE_KEY_SEPARATOR", "/").to_json %>
cache_expiry_time: <%%= Decidim::Env.new("DECIDIM_CACHE_EXPIRATION_TIME", "1440").to_i %>
stats_cache_expiry_time: <%%= Decidim::Env.new("DECIDIM_STATS_CACHE_EXPIRATION_TIME", 10).to_i %>
Expand Down

0 comments on commit b13a6d7

Please sign in to comment.