diff MoinMoin/_tests/__init__.py @ 6025:05a6897ee496

"userdir" caching scope: use it for userid lookup caches, reduce code duplication For same reasons (see previous changesets), we need to use the "userdir" scope for the name2id / openid2id lookup caches, too.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 12 Feb 2014 12:07:22 +0100
parents 2aa43685e17b
children 1893da1d5213
line wrap: on
line diff
--- a/MoinMoin/_tests/__init__.py	Wed Feb 12 01:15:00 2014 +0100
+++ b/MoinMoin/_tests/__init__.py	Wed Feb 12 12:07:22 2014 +0100
@@ -60,10 +60,7 @@
     # really get rid of the user
     fpath = os.path.join(user_dir, user_id)
     os.remove(fpath)
-    # delete cache
-    arena = 'user'
-    key = 'name2id'
-    caching.CacheEntry(request, arena, key, scope='wiki').remove()
+    user.clearUserIdLookupCaches(request)
 
 # Creating and destroying test pages --------------------------------