Callback to delete files if modified more than 60 seconds ago.

Paramètres

string $uri: Location of the file to check.

1 string reference to 'advagg_delete_temp_file_if_stale'
advagg_remove_temp_files dans ./advagg.cache.inc
Delete leftover temp files.

Fichier

./advagg.cache.inc, line 874

Code

function advagg_delete_temp_file_if_stale($uri) {
    // Set stale file threshold to 60 seconds.
    if (REQUEST_TIME - filemtime($uri) > 60) {
        file_unmanaged_delete($uri);
    }
}