mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 14:07:04 +03:00
Weekly fixes
This commit is contained in:
parent
053fd1c60b
commit
f1b3271b4d
16 changed files with 210 additions and 93 deletions
|
|
@ -191,4 +191,25 @@ class CacheClient
|
|||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $bCache = false
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function Verify($bCache = false)
|
||||
{
|
||||
if ($this->oDriver)
|
||||
{
|
||||
$sCacheData = \gmdate('Y-m-d-H');
|
||||
if ($bCache && $sCacheData === $this->Get('__verify_key__'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return $this->Set('__verify_key__', $sCacheData);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue