invalidate
To clear the cache of the database and the values stored by cached()
If you execute this function in any table of your database, all values in the database cache (e.g. via cached()
) will be deleted.
This causes the cached()
function to re-execute the script it contains on the next computation.
Syntax
invalidate()
Return
void
Examples
Result: The database cache is empty. 🕳️
See also
cached
, which runs a given script only once and caches and returns the output value.
Last updated