O4WCache routine
Description
O4WCache can retrieve a cached version of the web page if it is "current", allowing you to short-circuit the CREATE event.
Syntax
success = O4WCACHE(action, id, date, time)
Parameters
The function has the following parameters:
Parameter | Description | |
---|---|---|
action | Literal. "READ" | |
id | The id of the web page. | |
date | The last modified date in internal format. | |
time | The last modified time in internal format. |
Returns
Boolean.
ValueAction Taken True If the cached version is more recent than the last modified information, sets the O4W output to the cached HTML (your application should return at this point). FalseIf there is no cached version, or if the cached version is out of date, then at the end of your O4W CREATE event caches the currently-generated version.
Remarks
While O4W allows you to dynamically create your web output at the CREATE event, there are often times when a cached version of the web page might be sufficient.
Example
If O4WCache("READ", "REPORT*1234", LastDate, LastTime) Then Return