Blame view
sources/apps/files_tree/lib/hooks.php
352 Bytes
|
42e4f8d60
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<?php
class OC_FilesTree_Hooks{
public static function ClearCache($parameters) {
if(is_array($parameters)){
if(\OC\Files\Filesystem::is_dir($parameters['path'].'/') || basename(getenv('REQUEST_URI'))=='newfolder.php'){
$cache = new OC_Cache_File();
$cache->remove('files_tree_cache');
}
else{
// Nothing to do here
}
}
}
}
|