Description Usage Arguments Details Value See Also
Load a resultset from a "fantasia" cache directory with the SQL Statement as the key if it was previously cached or is within expiration period as indicated by the hrs_expired
argument. This function is a wrapper around the loadCache
function.
1 | load_cache(sql_statement, hrs_expired = 8, dirs)
|
sql_statement |
SQL Statement from which a hexadecimal hash code was be generated and appended to the cache filename. See |
dirs |
Argument passed to |
An expiration period is incorporated by first determining the cache path and its mtime from the file information. If the cache file exists, the resultset will be returned if the the difference between the current time and the mtime of the cache file is less than or equal to the hrs_expired
value.
Resultset if the cached file exists and is not expired and NULL otherwise.
Other cache functions:
cache()
,
loadCache()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.