function advagg_delete_temp_file_if_stale in Advanced CSS/JS Aggregation 7.2
Callback to delete files if modified more than 60 seconds ago.
Parameters
string $uri: Location of the file to check.
1 string reference to 'advagg_delete_temp_file_if_stale'
- advagg_remove_temp_files in ./
advagg.cache.inc - Delete leftover temp files.
File
- ./
advagg.cache.inc, line 874 - Advanced CSS/JS aggregation module.
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);
}
}