CBFS Connect 2020 Node.js Edition

Questions / Feedback?

DisableRouteCache Method

Disable the automatic routing of requests to local files.

Syntax

cbfs.disableRouteCache(invalidateRoutedFiles, [callback])

Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for this method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

This method disables the automatic routing of requests to files in the directory specified by a previous call to EnableRouteCache (please refer to that method for more information about said request routing).

The InvalidateRoutedFiles parameter controls what happens to any handles currently open for files in the aforementioned directory; passing true will allow them to continue being used, while passing false will invalidate them immediately.

Note: This method cannot be called within events.

Copyright (c) 2022 Callback Technologies, Inc. - All rights reserved.
CBFS Connect 2020 Node.js Edition - Version 20.0 [Build 8164]