Umbau der Statistik Ausgabe (each enfernt)
Optimierungen
This commit is contained in:
7
resources/library/cache/cache.function.php
vendored
7
resources/library/cache/cache.function.php
vendored
@@ -5,19 +5,19 @@ function getCacheList()
|
||||
{
|
||||
$fileSuffix = '.cache.php';
|
||||
$cacheArray = array('usb_devices' => array(), 'users' => array(), 'weather' => array());
|
||||
|
||||
|
||||
foreach ($cacheArray as $name => $info)
|
||||
{
|
||||
$cacheArray[$name]['active'] = (getConfig('cache:activation.'.$name, 'false') == 'true') ? true : false;
|
||||
$cacheArray[$name]['lifetime'] = getConfig('cache:lifetime.'.$name, 0);
|
||||
|
||||
|
||||
if (file_exists(CACHE_PATH.$name.$fileSuffix) && is_file(CACHE_PATH.$name.$fileSuffix))
|
||||
{
|
||||
$cacheArray[$name]['filesize'] = filesize(CACHE_PATH.$name.$fileSuffix);
|
||||
$cacheArray[$name]['modification'] = filemtime(CACHE_PATH.$name.$fileSuffix);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $cacheArray;
|
||||
}
|
||||
|
||||
@@ -35,4 +35,3 @@ function getCacheName($file)
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user