diff options
author | chris <chris@jalakai.co.uk> | 2006-09-24 22:21:57 +0200 |
---|---|---|
committer | chris <chris@jalakai.co.uk> | 2006-09-24 22:21:57 +0200 |
commit | ce6b63d97068e71369bad95e7959d0110717bbfd (patch) | |
tree | f496db6a8c3d9e964f902873a3db81c7a1dddf72 /inc/common.php | |
parent | 100a97e3f1501dd634d1e398f564902dcaf2b3fb (diff) | |
download | rpg-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/common.php')
-rw-r--r-- | inc/common.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/inc/common.php b/inc/common.php index 9a3cd6d8b..c2a6903ab 100644 --- a/inc/common.php +++ b/inc/common.php @@ -722,10 +722,8 @@ function saveWikiText($id,$text,$summary,$minor=false){ notify($id,'admin',$old,$summary,$minor); notify($id,'subscribers',$old,$summary,$minor); - //purge cache on add by updating the purgefile - if($conf['purgeonadd'] && (!$old || $del)){ - io_saveFile($conf['cachedir'].'/purgefile',time()); - } + // update the purgefile (timestamp of the last time anything within the wiki was changed) + io_saveFile($conf['cachedir'].'/purgefile',time()); } /** |