function advagg_get_cache_time in Advanced CSS/JS Aggregation 8.2
Convert the saved advagg cache level to a time interval.
Parameters
int $level: The cache level.
Return value
int The time interval.
1 call to advagg_get_cache_time()
- Files::getMultiple in src/
State/ Files.php - Returns the stored key/value pairs for a given set of keys.
File
- ./
advagg.module, line 674 - Advanced CSS/JS aggregation module.
Code
function advagg_get_cache_time($level = 0) {
switch ($level) {
case 1:
case 3:
return 86400;
case 5:
return 604800;
case 0:
default:
return 0;
}
}