DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:cleanup

Table of Contents

cleanup Plugin

Compatible with DokuWiki

  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" unknown
  • 2015-08-10 "Detritus" yes
  • 2014-09-29 "Hrun" yes

plugin Perform file cleanup in the wiki

Last updated on
2016-07-06
Provides
Helper, Admin, Action
Repository
Source

Tagged with cleanup, maintenance

A CosmoCode Plugin

This plugin can automatically or manually search the data directory for old and possibly unused files and delete them to make space available again.

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Usage

You can configure some times in the configuration manager. The actual work can be triggered from it's own admin page where you can preview the affected files and start the deletion process. The cleanup can be automated by activating it in the configuration.

The following default ages are used in the plugin:

cache files 3 months
old page revisions 2 months
old media revisions 1 month
orphaned page meta data 3 months
orphaned media meta data 2 months
stale lock files 30 minutes

Please note: for cache files it is not possible to determine if a cache file is still in use. On systems where access times (atime) are available the configured time will be used to see when a cache file was last accessed. If atimes are not available the last modification date is used instead. This means it can happen that cache files get deleted that were still in use. However DokuWiki will simply recreate these files.

On large wikis the search process may take a long time and might time out before finishing. The automated process can optionally be run from command line by running the provided cron.php script.

plugin/cleanup.txt · Last modified: 2016-08-30 00:36 by ach