public static function deleteKey()

in app/classes/Cache/Cache.php [127:145]


    public static function deleteKey(string $id, bool $immutable = false): bool
    {
        $file = self::getKeyPath($id, $immutable);

        // Make sure this wasn't already deleted and the server file cache is lying
        clearstatcache(true, $file);

        if (! file_exists($file)) {
            return false;
        }

        // if there is a lock on the file, we can't delete it,
        // Can happen if it's being created by another php process
        if (! is_writable($file)) {
            return false;
        }

        return @unlink($file);
    }