summaryrefslogtreecommitdiff
path: root/inc/parser/metadata.php
diff options
context:
space:
mode:
authorchris <chris@jalakai.co.uk>2006-09-24 22:21:57 +0200
committerchris <chris@jalakai.co.uk>2006-09-24 22:21:57 +0200
commitce6b63d97068e71369bad95e7959d0110717bbfd (patch)
treef496db6a8c3d9e964f902873a3db81c7a1dddf72 /inc/parser/metadata.php
parent100a97e3f1501dd634d1e398f564902dcaf2b3fb (diff)
downloadrpg-ce6b63d97068e71369bad95e7959d0110717bbfd.tar.gz
rpg-ce6b63d97068e71369bad95e7959d0110717bbfd.tar.bz2
cache, metadata & purgefile updates
Cache - add dependency for metadata renderer file - check metadata for end of page life, "date valid end". Metadata Renderer - RSS syntax mode now sets rendered page expiry, "date valid end" and includes the feed URL in "relation haspart". Purgefile For all wiki installations the purgefile records the earliest time before which no cache purge (based on data consistency) is required. Cache files older than this time MAY need to be purged. - remove purgeonadd configuration setting darcs-hash:20060924202157-9b6ab-4531e91411c41914eeab2b6a8160c3d46b001cee.gz
Diffstat (limited to 'inc/parser/metadata.php')
-rw-r--r--inc/parser/metadata.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/inc/parser/metadata.php b/inc/parser/metadata.php
index fea2d48f2..9704c0475 100644
--- a/inc/parser/metadata.php
+++ b/inc/parser/metadata.php
@@ -325,7 +325,15 @@ class Doku_Renderer_metadata extends Doku_Renderer {
if ($this->capture && $title) $this->doc .= '['.$title.']';
}
- function rss($url){}
+ function rss($url,$params) {
+ global $conf;
+
+ $this->meta['relation']['haspart'][$url] = true;
+ $this->meta['date']['valid']['end'] =
+ empty($this->meta['date']['valid']['end']) ?
+ time() + $conf['rss_update'] :
+ min($this->meta['date']['valid']['end'], time() + $conf['rss_update']);
+ }
function table_open($maxcols = NULL, $numrows = NULL){}
function table_close(){}