mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
setEnableLatelyCache() 24 hours
This commit is contained in:
@@ -268,7 +268,7 @@ class UserRepository extends BaseRepository
|
||||
|
||||
private function setEnableLatelyCache(int $userId): void
|
||||
{
|
||||
NexusDB::cache_put(User::getUserEnableLatelyCacheKey($userId), now()->toDateTimeString());
|
||||
NexusDB::cache_put(User::getUserEnableLatelyCacheKey($userId), now()->toDateTimeString(), 86400);
|
||||
}
|
||||
|
||||
public function getInviteInfo($id)
|
||||
|
||||
Reference in New Issue
Block a user