diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-12-11 22:00:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-12-11 22:00:04 +0000 |
commit | b6b24c28e046bbd0bddb9b2b65ca9d4bddff24c8 (patch) | |
tree | 8cb31a5aa7568084b9a785f8154f72a2b41fc419 /update.php | |
parent | 56ac29fad891078c20c06e3d5e1f29a045f65e13 (diff) | |
download | brdo-b6b24c28e046bbd0bddb9b2b65ca9d4bddff24c8.tar.gz brdo-b6b24c28e046bbd0bddb9b2b65ca9d4bddff24c8.tar.bz2 |
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.
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/update.php b/update.php index 03761877a..608907404 100644 --- a/update.php +++ b/update.php @@ -57,7 +57,8 @@ $mysql_updates = array( "2002-10-17" => "update_42", "2002-10-26" => "update_43", "2002-11-08" => "update_44", - "2002-11-20" => "update_45" + "2002-11-20" => "update_45", + "2002-12-10" => "update_46" ); // Update functions @@ -636,6 +637,10 @@ function update_45() { update_sql("ALTER TABLE page ADD description varchar(128) NOT NULL default ''"); } +function update_46() { + update_sql("ALTER TABLE cache ADD created int(11) NOT NULL default '0'"); +} + function update_upgrade3() { update_sql("INSERT INTO system VALUES ('archive.module','archive','module','',1)"); update_sql("INSERT INTO system VALUES ('block.module','block','module','',1)"); |