WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#51686 new defect (bug)

Not invalidating files in opcode cache after core update

Reported by: Krstarica Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.5
Component: Upgrade/Install Keywords: reporter-feedback
Focuses: Cc:

Description

Although #36455 is implemented and it properly invalidates files in Zend OpCache when doing plugin updates, it seems it does not work properly when doing core updates.

When installing the latest version of WordPress using wp-admin/update-core.php or being auto-updated, it shows like nothing has happened, meaning it is still pulling things from Zend OpCache.

Change History (7)

This ticket was mentioned in Slack in #hosting-community by javier. View the logs.


3 months ago

This ticket was mentioned in Slack in #core by noisysocks. View the logs.


3 months ago

#4 @mikeschroder
3 months ago

  • Keywords reporter-feedback added

Thanks for the report!

This worked for me in testing ahead of the update, so I'd love to figure out why it's not working in practice there.

Would you mind providing some details about the configuration on the site, so that I can try to reproduce?

Things like the host, PHP version, opcache configuration, and how the upgrade occurred (Was it started by core? The host? WP-CLI, etc) would be really helpful.

Thanks much!

#5 @mikeschroder
3 months ago

  • Version changed from 5.5.2 to 5.5

#6 @Krstarica
3 months ago

Thanks for getting back to me Mike.

It happens both (1) when auto-update is triggered by WordPress itself and (2) when manually click update button at wp-admin/update-core.php. The same thing occurs in all previous versions of WordPress, too. After the upgrade is finished, it again shows prompt that the new version is available. systemctl reload php-fpm doesn't fix things.

OS: CentOS Linux release 7.8.2003 (Core)

PHP 7.3.24 (cli) (built: Oct 27 2020 11:01:59) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.24, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.24, Copyright (c) 1999-2018, by Zend Technologies

OPCache configuration in php.ini:

opcache.memory_consumption=640
opcache.interned_strings_buffer=16
opcache.fast_shutdown=1
opcache.enable_cli=0
opcache.revalidate_freq = 60
opcache.max_accelerated_files=30000

This ticket was mentioned in Slack in #core-auto-updates by audrasjb. View the logs.


3 months ago

Note: See TracTickets for help on using tickets.