[Phpslash-commit] CVS: phpslash-ft/public_html comment.php3,1.21,1.22
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2002-11-22 19:01:36
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory sc8-pr-cvs1:/tmp/cvs-serv9467/phpslash-ft/public_html Modified Files: comment.php3 Log Message: experimental expire cache on update Index: comment.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/comment.php3,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** comment.php3 14 Nov 2002 18:56:42 -0000 1.21 --- comment.php3 22 Nov 2002 19:01:32 -0000 1.22 *************** *** 58,61 **** --- 58,65 ---- $id = $cmt->update($ary); if ($id) { + + // expire cache for this story_id + jpcache_gc('string', "-story_id-" . $ary['story_id'], "100"); + $content .= getMessage($cmt->getMessage()); $comment_ary = $cmt->getCommentArray($id); |