Jump to content

Funky caching

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Equinox (talk | contribs) at 16:38, 3 December 2019. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Funky caching is the generation and display of provisional dynamic content when a solicited resource is not available or has been moved. It is also known as the ErrorDocument trick, Smarter Caching and Rasmus' Trick,[1] the latter name in honor of Rasmus Lerdorf, creator of the PHP programming language, who was allegedly the first to present this mechanism (though it is also attributed to Stig Bakken[2]).

One common usage is the replacement of the HTTP Error404 ErrorDocument with a dynamic script.

Another way to look at it as a variation of the cache-aside pattern where, instead of reading the data from the data store, it is generated dynamically, and where the implementation spans an architecture (in this case the Web server and the Web app language) instead of being implemented in a single system.[3]

References

  1. ^ "PHP without PHP". 2008-12-24.
  2. ^ "User Information: Stig Bakken". 2010-05-04.
  3. ^ terry chay (2019-03-15). "2019-03 PHP without PHP Architecture @ Confoo". {{cite journal}}: Cite journal requires |journal= (help)