revert per Colin

Signed-off-by: Andy Fragen <andy@thefragens.com>
This commit is contained in:
Andy Fragen 2025-08-13 23:08:35 -07:00
parent 07d4a13d2f
commit 5e7d2d5559

View file

@ -119,7 +119,7 @@ function get_browser_check_response( string $agent ) {
* @return array|null Branch-indexed data from PHP.net, or null on failure.
*/
function get_php_branches() {
$releases = wp_cache_get( 'php_releases' );
$releases = get_transient( 'php_releases' );
if ( $releases ) {
return $releases;
}
@ -146,7 +146,7 @@ function get_php_branches() {
$indexed[ $ver['branch'] ] = $ver;
}
wp_cache_set( 'php_releases', $indexed, '', CACHE_LIFETIME );
set_transient( 'php_releases', $indexed, CACHE_LIFETIME );
return $indexed;
}