Navigation

Operators and Keywords

Function List:

C++ API

: val = doc_cache_file ()
: old_val = doc_cache_file (new_val)
: doc_cache_file (new_val, "local")

Query or set the internal variable that specifies the name of the Octave documentation cache file.

A cache file significantly improves the performance of the lookfor command. The default value is octave-home/share/octave/version/etc/doc-cache, in which octave-home is the root directory of the Octave installation, and version is the Octave version number. The default value may be overridden by the environment variable OCTAVE_DOC_CACHE_FILE, or the command line argument --doc-cache-file FNAME.

When called from inside a function with the "local" option, the variable is changed locally for the function and any subroutines it calls. The original variable value is restored when exiting the function.

See also: doc_cache_create, lookfor, info_program, doc, help, makeinfo_program.

See also: lookfor.

Package: octave