Fix function remainingTime (#521)

This commit is contained in:
Luan Luciano 2022-08-02 07:07:04 -03:00 committed by GitHub
parent cdaac6e974
commit a67b03ba38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ class Cache
$remaining = 0;
if ($this->_memory) {
if (apcu_exists($this->_file)) {
$meta = apc_cache_info('user');
$meta = apcu_cache_info();
foreach ($meta['cache_list'] AS $item) {
if ($item['info'] == $this->_file) {
$remaining = ($item['creation_time'] + $item['ttl']) - time();