CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 24 Aug 2025 22:48:26 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20091207210305
location: https://web.archive.org/web/20091207210305/https://github.com/mcurry/html_cache
server-timing: captures_list;dur=0.847391, exclusion.robots;dur=0.030706, exclusion.robots.policy;dur=0.016444, esindex;dur=0.018158, cdx.remote;dur=13.052415, LoadShardBlock;dur=192.053674, PetaboxLoader3.datanode;dur=128.517815, PetaboxLoader3.resolve;dur=29.000693
x-app-server: wwwb-app204
x-ts: 302
x-tr: 235
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app204; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 24 Aug 2025 22:48:27 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Mon, 07 Dec 2009 21:03:05 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "4b79919167dfc669bd8f2ce7a26bb027"
x-archive-orig-x-runtime: 132ms
x-archive-orig-content-length: 22746
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Mon, 07 Dec 2009 21:03:05 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 03 Oct 2009 00:24:22 GMT", ; rel="prev memento"; datetime="Sat, 03 Oct 2009 00:24:22 GMT", ; rel="memento"; datetime="Mon, 07 Dec 2009 21:03:05 GMT", ; rel="next memento"; datetime="Sun, 10 Jan 2010 02:55:59 GMT", ; rel="last memento"; datetime="Fri, 21 Feb 2025 03:56:15 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_13_20091207194753_crawl103-c/51_13_20091207204755_crawl101.arc.gz
server-timing: captures_list;dur=0.469051, exclusion.robots;dur=0.018146, exclusion.robots.policy;dur=0.009793, esindex;dur=0.009186, cdx.remote;dur=17.144370, LoadShardBlock;dur=279.959737, PetaboxLoader3.datanode;dur=273.306558, PetaboxLoader3.resolve;dur=131.411168, load_resource;dur=150.294187
x-app-server: wwwb-app204
x-ts: 200
x-tr: 501
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
mcurry's html_cache at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | CakePHP Plugin - Store a Cake generated page as plain HTML edit |
Homepage: | edit |
Public Clone URL: |
git://github.com/mcurry/html_cache.git
Give this clone URL to anyone.
git clone git://github.com/mcurry/html_cache.git
|
Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:mcurry/html_cache.git
|

unknown (author)
Fri May 08 21:30:48 -0700 2009
name | age | message | |
---|---|---|---|
![]() |
README | Fri May 08 21:30:48 -0700 2009 | fixed docs and headers [unknown] |
![]() |
extras/ | Fri May 08 21:26:12 -0700 2009 | made into plugin; added tests [unknown] |
![]() |
tests/ | Fri May 08 21:26:12 -0700 2009 | made into plugin; added tests [unknown] |
![]() |
views/ | Fri May 08 21:30:48 -0700 2009 | fixed docs and headers [unknown] |
README
/* * HtmlCache Plugin * Copyright (c) 2009 Matt Curry * https://pseudocoder.com * https://github.com/mcurry/html_cache * * @author mattc <matt@pseudocoder.com> * @license MIT * */ /* About */ Cake's core cache helper is great, but the files it outputs are PHP files, so it will never be as fast as straight HTML files. This HTML Cache Helper writes out pure HTML, meaning the web server doesn't have to touch PHP when a request is made. This plugin is for sites with high traffic pages that have nothing unique about the user on the page. I use this helper on https://www.rsstalker.com. It handles the custom RSS feeds (currently around 13k), which is perfect since there is nothing user specific in the XML. Each feed gets hit multiple times a day, by multiple aggregators. This really adds up to a ton of requests. /* Notes */ * Nothing specific to a user on the page. No "Welcome, Matt" or shopping carts. * Cache will never expire. See below for workaround. /* Instructions */ * Include the helper in your controller: $helpers = array('HtmlCache.HtmlCache'); * Or in a single action $this->helpers[] = 'HtmlCache.HtmlCache'; * Update your webroot .htaccess file to include the following lines before CakePHP's Rewrite Cond (see webroot.htaccess for an example): RewriteCond %{DOCUMENT_ROOT}/cache/$1/index.html -f RewriteRule ^(.*)$ /cache/$1/index.html [L] /* Tips */ * To expire the cache I use a cron job which deletes old files from the directory. find /full/path/to/app/webroot/cache -mmin +360 | xargs rm -f * A sample htaccess file, cache.htaccess is included that will additionally gzip the cached files for even better performance.
This feature is coming soon. Sit tight!