summaryrefslogtreecommitdiff
path: root/dev-python/mwlib/files/mwlib-purge-cache.cron-r1
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/mwlib/files/mwlib-purge-cache.cron-r1')
-rw-r--r--dev-python/mwlib/files/mwlib-purge-cache.cron-r14
1 files changed, 4 insertions, 0 deletions
diff --git a/dev-python/mwlib/files/mwlib-purge-cache.cron-r1 b/dev-python/mwlib/files/mwlib-purge-cache.cron-r1
new file mode 100644
index 00000000000..870beecad23
--- /dev/null
+++ b/dev-python/mwlib/files/mwlib-purge-cache.cron-r1
@@ -0,0 +1,4 @@
+# purge mw-serve cache directory
+# --cache-dir=DIR: the NSLAVE_CACHEDIR directory specified in /etc/conf.d/nslave
+# --purge-cache=HOURS: remove cache files that have not been touched for at east HOURS hours
+00 23 * * * sudo -u mwlib mw-serve-ctl --cache-dir=/var/cache/mwlib --purge-cache=24