application/manage/logic/RuntimeLogic.php
public static function delRuntime($path = '/', $self = false)
    {
        // 真实路径
        $path_runtime = realpath(RUNTIME_PATH);
        $path_list = realpath(RUNTIME_PATH . $path);
        
        // 判断越界
        if (strpos($path_list, $path_runtime) === false) {
            return false;
        }
        
        // 删除文件
        try {
            FileManager::delFile($path_list, $self);
            
            return true;
        } catch (\Exception $e) {
            return false;
        }
    }
public static function delRuntime($path = '/', $self = false)
    {
        // 真实路径
        $path_runtime = realpath(RUNTIME_PATH);
        $path_list = realpath(RUNTIME_PATH . $path);
        
        // 判断越界
        if (strpos($path_list, $path_runtime) === false) {
            return false;
        }
        
        // 删除文件
        try {
            FileManager::delFile($path_list, $self);
            
            return true;
        } catch (\Exception $e) {
            return false;
        }
    }
删除缓存

@param string $path
@return boolean