Update storage.php

This commit is contained in:
Namhyeon Go 2019-11-15 15:53:10 +09:00 committed by GitHub
parent 33d72b07cb
commit 406c4a958b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -304,6 +304,16 @@ if(!check_function_exists("remove_storage_files")) {
}
}
if(!check_function_exists("remove_volatile_files")) {
function remove_volatile_files($storage_type, $max_age=0, $options=array()) {
$config = get_config();
return remove_storage_files("cache", array(
"max_age" => $max_age,
"excludes" => array("index.php", "index.html")
));
}
}
if(!check_function_exists("write_storage_file")) {
function write_storage_file($data, $options=array()) {
$result = false;