| CARVIEW |
Select Language
HTTP/2 200
server: nginx
date: Fri, 16 Jan 2026 10:14:16 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sat, 06 Feb 2010 17:26:11 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "e30a3e65ee4c942cdc42aab63da3a9a4"
x-archive-orig-x-runtime: 129ms
x-archive-orig-content-length: 23400
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: Sat, 06 Feb 2010 17:26:13 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
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_14_20100206133815_crawl102-c/51_14_20100206172336_crawl101.arc.gz
server-timing: captures_list;dur=0.915915, exclusion.robots;dur=0.067083, exclusion.robots.policy;dur=0.050352, esindex;dur=0.014857, cdx.remote;dur=17.012947, LoadShardBlock;dur=215.638645, PetaboxLoader3.datanode;dur=130.764565, PetaboxLoader3.resolve;dur=92.316488, load_resource;dur=73.814458
x-app-server: wwwb-app227-dc8
x-ts: 200
x-tr: 423
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app227; path=/
x-location: All
x-as: 14061
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 service is courtesy of Pledgie.
mcurry / html_cache
- Source
- Commits
- Network (2)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
-
Branches (1)
- master ✓
- Tags (0)
Sending Request…
Enable Donations
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
CakePHP Plugin - Store a Cake generated page as plain HTML — Read more
| name | age | message | |
|---|---|---|---|
| |
README | Wed Jan 06 20:06:14 -0800 2010 | updated htaccess rewrite in README to match sam... [mcurry] |
| |
controllers/ | Fri Jan 08 07:51:56 -0800 2010 | clear cache on delete actions [mcurry] |
| |
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 Jan 08 07:52:35 -0800 2010 | don't cache if posted data or flash messages [mcurry] |
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. Included is also a Croogo CMS (https://croogo.org) using the hooks system. 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 (for non-Croogo version). 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 extras/webroot.htaccess for an example): RewriteCond %{REQUEST_METHOD} ^GET$ RewriteCond %{DOCUMENT_ROOT}/cache/$1/index.html -f RewriteRule ^(.*)$ /cache/$1/index.html [L] /* Croogo Instructions */ * Update your webroot .htaccess file to include the following lines before CakePHP's Rewrite Cond (see extras/webroot.htaccess for an example): RewriteCond %{DOCUMENT_ROOT}/cache/$1/index.html -f RewriteRule ^(.*)$ /cache/$1/index.html [L] * In the Croogo admin go to Extensions -> Hooks and active both the component and helper. * The Croogo version will automatically delete the cached file if there is a change to the content or a comment is added. /* 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.
