1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-31 04:13:49 +01:00

RedisCacheDriver.php: remove erroneous expire scaling

This commit is contained in:
Zankaria 2024-10-28 22:15:57 +01:00
parent d6677bb90c
commit 30113d3be9

View File

@ -33,8 +33,7 @@ class RedisCacheDriver implements CacheDriver {
if ($expires === false) {
$this->inner->set($this->prefix . $key, \json_encode($value));
} else {
$expires = $expires * 1000; // Seconds to milliseconds.
$this->inner->setex($this->prefix . $key, $expires, \json_encode($value));
$this->inner->setEx($this->prefix . $key, $expires, \json_encode($value));
}
}