Configuration parameters

In a file defining a server side macro, the MACROTTL function defines the time to live of the macro code. If the macro is accessed after this delay has expired and on-demand loading of macros is enabled, it will unconditionally be reloaded from disk.

This feature is very useful when you have macros generated dynamically on the server side which change frequently. Using MACROTTL you can ensure the newest code is loaded regardless of the rescan interval of the macro directory.

In a file defining a server side macro, the call to MACROTTL should appear before or after the actual macro definition but not within.

The time after which the macro will no longer be valid is the time of the call to MACROTTL plus its parameter.

MACROTTL is available since version 1.2.13.