class Standard . HTTPreplacedText {
} inherits from HTTPcachedObject;
The HTTPcachedFile class implements the standard means for caching dynamically generated data that is to be provided via the HTTPdaemon.
HTTPreplacedText:create(oid urlDir, string pageData, string mimeType, assoc substitutions, string name)
See initialize.
HTTPreplacedText:initialize(oid urlDir, string pageData, string mimeType, assoc substitutions, string name, optional any validForSeconds)
The create method takes a minimum of 4 arguments.
A HTTPcachedFile does not actually register itself with the URLdirectory. This must be performed by the application that creates the HTTPcachedFile object. This provides the opportunity to control when a cached object becomes visible. The names are recorded so that when the HTTPcachedFile object is deleted, the appropriate entries can be unregistered with the URLdirectory.