updated to clear cache on logout