rdbms: remove references to SQL_CACHE/SQL_NOCACHE
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 7 Aug 2019 22:06:43 +0000 (15:06 -0700)
committerKrinkle <krinklemail@gmail.com>
Wed, 7 Aug 2019 22:15:47 +0000 (22:15 +0000)
Change-Id: I4bace17f7f5171eea9bbf13e7f40fd7027a1ce35

includes/libs/rdbms/database/Database.php
includes/libs/rdbms/database/IDatabase.php

index 8b4ff67..5a40f44 100644 (file)
@@ -1731,14 +1731,6 @@ abstract class Database implements IDatabase, IMaintainableDatabase, LoggerAware
                        $startOpts .= ' SQL_CALC_FOUND_ROWS';
                }
 
-               if ( isset( $noKeyOptions['SQL_CACHE'] ) ) {
-                       $startOpts .= ' SQL_CACHE';
-               }
-
-               if ( isset( $noKeyOptions['SQL_NO_CACHE'] ) ) {
-                       $startOpts .= ' SQL_NO_CACHE';
-               }
-
                if ( isset( $options['USE INDEX'] ) && is_string( $options['USE INDEX'] ) ) {
                        $useIndex = $this->useIndexClause( $options['USE INDEX'] );
                } else {
index e480530..6b02867 100644 (file)
@@ -716,8 +716,6 @@ interface IDatabase {
         *    - SQL_BUFFER_RESULT
         *    - SQL_SMALL_RESULT
         *    - SQL_CALC_FOUND_ROWS
-        *    - SQL_CACHE
-        *    - SQL_NO_CACHE
         *
         * @param string|array $join_conds Join conditions
         *