{% extends 'squid/cache/index.html' %} {% block toolbar_disk %}class="active"{%endblock%} {% block page_comment %}{% endblock %} {% block page_content %}

This page is used to enable and configure disk cache. By default disk cache is disabled. Please study Squid documentation before enabling cache. Cache folder is {{object.cache_dir}}.

{% csrf_token %}

Warning! If you are enabling cache for the first time or you have selected different cache type below, click Re-Initialize Cache Directory link to erase and re-initialize cache directory. Only after this is done, enable the cache!

Disk Cache Settings

{% block member_heading%}{%endblock%} {% if form.non_field_errors %}
{% for error in form.non_field_errors %} {{ error|escape }} {% endfor %}
{% endif %}
{% csrf_token %}
{{form.cache_replacement_policy}} {% if form.cache_replacement_policy.errors %} {{form.cache_replacement_policy.errors|striptags}} {% else %} Disk cache replacement policy parameter determines which objects are purged from disk when more space is needed. Default value is LRU. See Squid documentation for more information. {%endif%}
{{form.minimum_object_size}}
{% if form.minimum_object_size.errors %} {{form.minimum_object_size.errors|striptags}} {% else %} Specify here the minimum size of the object to be stored in disk cache. Objects smaller than this size will not be saved on disk. Default value is 0 KB meaning that all objects can be stored. See Squid documentation for more information. {%endif%}
{{form.maximum_object_size}}
{% if form.maximum_object_size.errors %} {{form.maximum_object_size.errors|striptags}} {% else %} Specify here the maximum size of object to be stored in disk cache. Default value is 4096 KB. Objects bigger than this value are not saved into disk cache. See Squid documentation for more information. {%endif%}
{{form.cache_type}} {% if form.cache_type.errors %} {{form.cache_type.errors|striptags}} {% else %} Cache type specifies the kind of storage system to use. Default value is ufs. See Squid documentation for more information. {%endif%}
{{form.ufs_mb}}
{% if form.ufs_mb.errors %} {{form.ufs_mb.errors|striptags}} {% else %} Specify here the amount of disk space (MB) to use under cache directory. Default value is 100 MB. See Squid documentation for more information. {%endif%}
{% endblock %}