WordPress.org

Make WordPress Core

Ticket #24044: autoload_key.patch

File autoload_key.patch, 552 bytes (added by DanBUK, 23 months ago)

Patch to add index onto wp_options autoload

  • wp-admin/includes/schema.php

    diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php
    index a9d7f72..27eede6 100644
    a b CREATE TABLE $wpdb->options ( 
    126126  option_value longtext NOT NULL, 
    127127  autoload varchar(20) NOT NULL default 'yes', 
    128128  PRIMARY KEY  (option_id), 
    129   UNIQUE KEY option_name (option_name) 
     129  UNIQUE KEY option_name (option_name), 
     130  KEY autoload (autoload) 
    130131) $charset_collate; 
    131132CREATE TABLE $wpdb->postmeta ( 
    132133  meta_id bigint(20) unsigned NOT NULL auto_increment,