Made User::validateCache account for mQuickTouched
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 30 Mar 2015 16:36:49 +0000 (09:36 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 30 Mar 2015 16:36:49 +0000 (09:36 -0700)
Change-Id: I3b733a0221462350f3a24d54ffe814357f379512

includes/User.php

index 5903599..7f30263 100644 (file)
@@ -2310,8 +2310,7 @@ class User implements IDBAccessObject {
         * @return bool
         */
        public function validateCache( $timestamp ) {
-               $this->load();
-               return ( $timestamp >= $this->mTouched );
+               return ( $timestamp >= $this->getTouched() );
        }
 
        /**