This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
wiki_external_filter/app/views/wiki_external_filter/_settings.html.erb

26 lines
993 B
Plaintext

<fieldset>
<legend>Caching Settings</legend>
<p>
<label>Cache expiration time</label><%= text_field_tag 'settings[cache_seconds]', @settings['cache_seconds'] %> seconds
</p>
<p>
Enter zero to disable caching. Make sure to configure cache_store if you use the value &gt; 0.
</p>
<p>
Configuration example for ActiveSupport::Cache::FileStore, config/environments/production.rb file:<br/>
<br/>
...<br/>
config.action_controller.cache_store = :file_store, &quot;#{Rails.root}/cache&quot;<br/>
...
</p>
<p>
Note: use 'fragment_cache_store' instead of 'cache_store' for Redmine 0.8.x.
</p>
<p>
Current cache settings are:<br/>
<%= h ActionController::Base.perform_caching ? "true" : "false" %><br/>
<% cache_store = ActionController::Base.respond_to?('cache_store=') ? ActionController::Base.cache_store : ActionController::Base.cache_store %>
ActionController::Base.cache_store = <%= h cache_store.inspect %>
</p>
</fieldset>