Ticket #116 (closed documentation issue: fixed)

Opened 3 years ago

Last modified 3 years ago

Create a cache layer usable by all view engines

Reported by: mikey Owned by: mikey
Priority: major Milestone: 0.4.0
Component: core Version: SVN-trunk
Keywords: Cc:

Description

There needs to be a cache layer usable by all view engines. The cache layer should be able to cache whole HTML pages to save regeneration of pages if not necessary.

Change History

Changed 3 years ago by mikey

  • status changed from new to assigned

Changeset 1099 contains some initial thoughts for this.

Changed 3 years ago by mikey

Changeset 1121 added support for the website cache in the front controller.

Changed 3 years ago by mikey

A default website cache factory was added with changeset 1122.

Changed 3 years ago by mikey

Base implementation finished by adding various unit tests with changesets 1123, 1129 and 1130.

Still todo: reference implementation and documentation.

Changed 3 years ago by mikey

Reference implementation added with changeset 1136: net::stubbles::websites::memphis::stubMemphisProcessor now makes optionally use of the website cache.

Still todo: think about allowing the website cache to return a different stubResponse instance from its retrieve method. This would allow an fpassthru() on the cache files containing the complete site. Another todo: documentation.

Changed 3 years ago by mikey

Changeset 1140 introduced the possibility to deny caching of a page from a page element.

Changed 3 years ago by mikey

  • type changed from enhancement to documentation issue

While a switch of the stubResponse instance itself would be possible it is not possible to use the fpassthru() function in the stubGzipWebsiteCache because the stubGzipWebsiteCache does only use a stubCacheContainer instance to put and get contents to and from the cache without knowing whether this is a file cache or a database cache or any other cache.

Therefore: implementation finished, requires documentation now.

Changed 3 years ago by mikey

  • status changed from assigned to closed
  • resolution set to fixed

Documentation created, see caching whole sites.

Note: See TracTickets for help on using tickets.