guides:o4w:o4w_api:o4wcache

O4WCache routine

O4WCache can retrieve a cached version of the web page if it is "current", allowing you to short-circuit the CREATE event.

success = O4WCACHE(action, id, date, time)

The function has the following parameters:

ParameterDescription
actionLiteral. "READ"
idThe id of the web page.
dateThe last modified date in internal format.
timeThe last modified time in internal format.

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.

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.

If O4WCache("READ", "REPORT*1234", LastDate, LastTime) Then Return
 
 
  • guides/o4w/o4w_api/o4wcache.txt
  • Last modified: 2024/06/19 20:19
  • by 127.0.0.1