Convert the saved advagg cache level to a time interval.

Paramètres

int $level: The cache level.

Return value

int The time interval.

1 call to advagg_get_cache_time()
Files::getMultiple dans src/State/Files.php

Fichier

./advagg.module, line 674

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;
    }
}