changeset 2881:e4a320fe298a

maint.cleancache: cleans now dicts_groups too (bug fix)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 27 Sep 2007 08:37:49 +0200
parents 6739287e65c9
children 14f9075abff4 c0366b467edf
files MoinMoin/script/maint/cleancache.py
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/maint/cleancache.py	Wed Sep 26 18:24:20 2007 +0200
+++ b/MoinMoin/script/maint/cleancache.py	Thu Sep 27 08:37:49 2007 +0200
@@ -13,6 +13,7 @@
     by the wiki text to html formatter,
 
     @copyright: 2005-2006 MoinMoin:ThomasWaldmann
+                2007 MoinMoin:ReimarBauer
     @license: GNU GPL, see COPYING for details.
 """
 
@@ -39,3 +40,11 @@
                 except:
                     pass
 
+        # cleans the wikidicts
+        cache_file = os.path.join(base, 'cache', 'wikiconfig', 'wikidicts', 'dicts_groups')
+        try:
+            os.remove(cache_file)
+            print "Removed %s" % cache_file
+        except:
+            pass
+