Page cache
Netsilon offers a cache for the generated pages.
The developper of a site can choose to put a page or a fragment of a page
in the cache during an arbitrary amount of time. While a page lies in the cache,
it is this static view of the page that is send to the navigator (the correct session
is however transmitted). The main purpose of the cache is to respond to a request faster.
The developper is warned that dynamic actions executed during the generation of
a page are not executed when the page is read from the cache. It is the developper
responsibility to assure that the site behaves correctly when some pages are
elected to stay in the cache.
Properties
Some properties are defined in the Site (root)
node of a project.
Cached pages are stored in: |
Cache not used: The cache for the generated pages is not used at all.
Temporary files: The representation of a generated page is stored in temporary files on the server (under /tmp). |
Some properties are defined in an executable web element
node.
Stay in cache for: (Seconds) |
Not cached or 0: This page is not cached.
A number of seconds: After generation of this page or fragment, its representation will stay and be read from
the cache during the number of seconds specified. |
Cache criteria
A page can be elected to stay in the cache unconditionally,
but it may also depend on the values of some entry variables. In the last case,
the developper may select in the entry content of the executable web element
which variables become a cache criteria.
|