{% extends "admin_base.html" %} {% block copyright %} {% endblock %} {% block extra_head %} {{ super() }} {% if settings.DEBUG %} {% else %} {% endif %} {% endblock %} {% set body_id = 'data_maintenance' %} {% set page_heading = 'Data maintenance' %} {% block body %} {{ super() }}

The image server performs its own background maintenance tasks, but on occasion you may want to take control. For example, the size of the image server's database can be greatly reduced by deleting the image statistics, if you don't need them.

{% macro auto_purge_message() -%} Info {% if settings.STATS_KEEP_DAYS > 0 %} Statistics are being purged automatically after {{ settings.STATS_KEEP_DAYS }} {% if settings.STATS_KEEP_DAYS == 1%} day. {% else %} days. {% endif %} {% else %} Statistics are not being automatically purged. {% endif %} {%- endmacro %}

Purge image statistics

{{ auto_purge_message() }}
Erase image statistics older than    
Image usage charts will show as blank before this date. The "top images" report may be affected.

Purge system statistics

{{ auto_purge_message() }}
Erase system statistics older than    
System usage charts will show as blank before this date.

Purge deleted image data

Erase the retained image data for deleted images in
All folders and sub-folders    
Titles, descriptions, statistics, and the former history of deleted images will no longer be available.

{% endblock %}