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

22 lines
858 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 fragment_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.fragment_cache_store = :file_store, &quot;#{RAILS_ROOT}/cache&quot;<br/>
...
</p>
<p>
Current cache settings are:<br/>
ActionController::Base.cache_configured? = <%= h ActionController::Base.cache_configured? ? "true" : "false" %><br/>
ActionController::Base.fragment_cache_store = <%= h ActionController::Base.fragment_cache_store.inspect %>
</p>
</fieldset>