1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

Clear first page cache on profile image update

This commit is contained in:
Daniel 2022-01-25 15:38:06 -03:00
parent 55e9d24c2b
commit 86dbbabffd

View file

@ -45,5 +45,6 @@ $user->setPhotoURL($photoURL);
if ($user->save()) { if ($user->save()) {
User::deleteOGImage(User::getId()); User::deleteOGImage(User::getId());
User::updateSessionInfo(); User::updateSessionInfo();
clearCache(true);
} }
die(json_encode($obj)); die(json_encode($obj));