Funky caching

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Funky Caching refers to the generation and display of provisional dynamic content when a solicited resource is not available or has been moved. It is also known as ErrorDocument trick, Smarter Caching and Rasmus' Trick[1] in honor to Rasmus Lerdorf (creator of the PHP programming language), allegedly the first one to present this mechanism (although also attributed to Stig Bakken[2]) in which the HTTP Error404 Error Document is replaced with a script capable of generating dynamic content.

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]


  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".