@ -80,7 +80,8 @@ if (isset($_POST) && $_POST) {
$_SESSION['userName'] = $userName;
$_SESSION['userId'] = $userId;
$_memcache->flush();
$_memcache->delete('api.user.profile.' . $userName);
$_memcache->delete('api.user.avatar.' . $userName);
// Redirect
header('Location: ' . PROJECT_HOST, true, 302);
@ -3,9 +3,10 @@
if (isset($_SESSION['userName'])) {
session_destroy();
$_memcache->delete('api.user.profile.' . $_SESSION['userName']);
$_memcache->delete('api.user.avatar.' . $_SESSION['userName']);
}