Loading

MACROTTL


platform
Since v1.2.13
Available on all platforms
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 ondemand loading of macros is enabled, it will unconditionnaly 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 the 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.

Signature