Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #64080, comment 14


Ignore:
Timestamp:
10/27/2025 05:03:35 PM (7 weeks ago)
Author:
skithund
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #64080, comment 14

    initial v1  
    33`WP_Upgrader::create_lock()` creates a lock into the database with an INSERT query, bypassing what ever is used for handling/priming options cache. And since `get_option( 'lock.lock' );` is returning `false` right after INSERT, it's triggering "[https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/class-wp-upgrader.php#L1069-L1072 If a lock couldn't be created, and there isn't a lock, bail.]" and not being able to re-create the lock.
    44
     5This code presents the problem in caching
    56{{{#!php
    67<?php