Flush caches with user data on login/out (bug 869671)