dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a50d21
)
Removed a bit too much. Must clear linkscc for the article itself on edit.
author
Mr. E23
<e23@users.mediawiki.org>
Fri, 28 Nov 2003 09:42:13 +0000
(09:42 +0000)
committer
Mr. E23
<e23@users.mediawiki.org>
Fri, 28 Nov 2003 09:42:13 +0000
(09:42 +0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
bf9344e
..
95ef788
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-493,8
+493,15
@@
class Article {
$sql = "UPDATE recentchanges SET rc_cur_time='{$now}' " .
"WHERE rc_cur_id=" . $this->getID();
wfQuery( $sql, DB_WRITE, $fname );
-
+
+ global $wgEnablePersistentLC;
+ if ( $wgEnablePersistentLC ) {
+ // Purge link cache for this page
+ $pageid=$this->getID();
+ wfQuery("DELETE FROM linkscc WHERE lcc_pageid='{$pageid}'", DB_WRITE);
+ }
}
+
if( $wgDBtransactions ) {
$sql = "COMMIT";
wfQuery( $sql, DB_WRITE );