Hello,

Rodrigo Campos, 2014-07-25 19:12+0100:
The dokuwiki installation doesn't ever erase the cache. In my installation the
cache was using 750M and the whole data directory, excluding the cache, was 20M.

When looking how to erase the cache, I found this:
https://www.dokuwiki.org/tips:maintenance

Based on that, I did a script to erase the cache and some other stale files that
page recommends. And also update the wordlist. I attach the script just in case
is useful for you.

Please consider fixing this using the script or in some other way.

Thank you for reporting this issue. I used your script as a daily crontab script, with some modifications:
* switch to pure /bin/sh;
* use find -delete instead of find | xargs rm;
* make it modular so the user can configure in /etc/default/dokuwiki whether or not to run the cleanup at all (default: yes), after how many days a file is to be considered as old (default: 180), whether or not to remove old revisions (default: NO!), and whether or not to update the spam blacklist (default: no, as it implies importing data from outside, which may or may not be possible or desirable depending on the case).

Given the importance of this modification, and the level of damage it could do if we made a mistake (it deletes file in a wiki data directory!), I will upload this revision to experimental: could you please test it and confirm it does not delete production data? Only after that will I be able to upload it to unstable.

Regards,

--
 ,--.
: /` )   ن Tanguy Ortolo    <xmpp:tan...@ortolo.eu>
| `-'    Debian Developer   <irc://irc.oftc.net/Tanguy>
 \_

Attachment: signature.asc
Description: Digital signature

Reply via email to