Merge branch 'master' of github.com:danog/MadelineProto into master

This commit is contained in:
Daniil Gentili 2020-10-08 11:28:31 +02:00
commit 5dc330119b
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ trait ArrayCacheTrait
if (!isset($this->ttlValues[$key])) {
return $default;
}
$this->ttlValues[$key] = \strtotime($this->ttl);
$this->ttlValues[$key] = time() + $this->ttl;
return $this->cache[$key];
}
@ -51,7 +51,7 @@ trait ArrayCacheTrait
protected function setCache(string $key, $value): void
{
$this->cache[$key] = $value;
$this->ttlValues[$key] = \strtotime($this->ttl);
$this->ttlValues[$key] = time() + $this->ttl;
}
/**