From b6b24c28e046bbd0bddb9b2b65ca9d4bddff24c8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 11 Dec 2002 22:00:04 +0000 Subject: Applied patch by Natrak: - page_header() now adds Last-Modified and ETag http headers. - When running PHP as an Apache module page_header() will check the HTTP headers for conditional gets, and will only push the content when it fails. (Works for html and xml pages as they are all cached). Note: this is a PHP limitation, so until PHP makes it work for other web servers this won't work for them. - Added created field to cache database to hold the timestamp when the cache was created. - Changed cache_get() to return an object with ->data and ->created. - Update forum and locale modules. --- database/database.pgsql | 1 + 1 file changed, 1 insertion(+) (limited to 'database/database.pgsql') diff --git a/database/database.pgsql b/database/database.pgsql index 780af6233..84eda045f 100644 --- a/database/database.pgsql +++ b/database/database.pgsql @@ -102,6 +102,7 @@ CREATE TABLE cache ( cid varchar(255) NOT NULL default '', data text default '', expire integer NOT NULL default '0', + created integer NOT NULL default '0', PRIMARY KEY (cid) ); -- cgit v1.2.3