26 lines
993 B
Plaintext
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 > 0.
|
|
</p>
|
|
<p>
|
|
Configuration example for ActiveSupport::Cache::FileStore, config/environments/production.rb file:<br/>
|
|
<br/>
|
|
...<br/>
|
|
config.action_controller.cache_store = :file_store, "#{Rails.root}/cache"<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>
|