template purge file cache blah blah blah
authorRiver Tarnell <kateturner@users.mediawiki.org>
Sun, 17 Jul 2005 20:15:36 +0000 (20:15 +0000)
committerRiver Tarnell <kateturner@users.mediawiki.org>
Sun, 17 Jul 2005 20:15:36 +0000 (20:15 +0000)
includes/Title.php

index ce8847b..0eadae6 100644 (file)
@@ -480,6 +480,8 @@ class Title {
         * @access public
         */
        function touchArray( $titles, $timestamp = '' ) {
+               global $wgUseFileCache;
+
                if ( count( $titles ) == 0 ) {
                        return;
                }
@@ -492,6 +494,11 @@ class Title {
                $first = true;
 
                foreach ( $titles as $title ) {
+                       if ( $wgUseFileCache ) {
+                               $cm = new CacheManager($title);
+                               @unlink($cm->fileCacheName());
+                       }
+
                        if ( ! $first ) {
                                $sql .= ',';
                        }