changeset 184:1da3682332fb

action.refresh; check also for meta data and don't check for the mimetype
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 17 Jul 2008 23:29:24 +0200
parents 18202e3eb721
children a0c61c78446e
files data/plugin/action/refresh.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/refresh.py	Thu Jul 17 23:20:45 2008 +0200
+++ b/data/plugin/action/refresh.py	Thu Jul 17 23:29:24 2008 +0200
@@ -29,10 +29,11 @@
     path = caching.CacheEntry(request, cache.cache_arena, "",
                               cache.cache_scope, do_locking=False)._filename()
 
-    files = [fn.decode(config.charset) for fn in os.listdir(path)  if fn.endswith('data')]
+    files = [fn.decode(config.charset) for fn in os.listdir(path) 
+             if fn.endswith('data') and fn.endswith('meta')]
     for file_name in files:
         key, ext = os.path.splitext(file_name)
-        if key.startswith('T') or key.startswith('W') and wikiutil.isPicture(key):
+        if key.startswith('T') or key.startswith('W'):
             cache.remove(request, key)
 
     request.page.send_page()