# cache_result

Many of the functions can return purely constant results containing constant strings and XPaths. Provided the function has no side effects and always returns the same result, calling `cache_result([true])` will ensure the function is called only once to improve performance. Calling `cache_result(false)` has no effect (is the default behavior) but can be useful to make it clear where caching must be disabled for a function.

Syntax: | `function cache_result([enable])`
Inputs: | enable (optional Boolean)
Outputs: | [NONE]
Usage: | Any function that is documented to return XPath expressions (No effect if used elsewhere).
See also: |

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm