changeset 3707:cfbb31fbd6b7

clear openid cache when saving a user...
author Johannes Berg <johannes AT sipsolutions DOT net>
date Thu, 12 Jun 2008 22:17:01 +0200
parents f0532fa90c6d
children 76a8e10cc022
files MoinMoin/user.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/user.py	Thu Jun 12 21:57:20 2008 +0200
+++ b/MoinMoin/user.py	Thu Jun 12 22:17:01 2008 +0200
@@ -623,6 +623,12 @@
             del self._request.cfg.cache.name2id
         except:
             pass
+        key = 'openid2id'
+        caching.CacheEntry(self._request, arena, key, scope='wiki').remove()
+        try:
+            del self._request.cfg.cache.openid2id
+        except:
+            pass
 
         if not self.disabled:
             self.valid = 1