diff --git a/includes/core/classes/class-event.php b/includes/core/classes/class-event.php index 335d782ed..ef56baefd 100644 --- a/includes/core/classes/class-event.php +++ b/includes/core/classes/class-event.php @@ -591,7 +591,8 @@ public function get_datetime(): array { } $cache_key = sprintf( self::DATETIME_CACHE_KEY, $this->event->ID ); - $data = wp_cache_get( $cache_key ) ?? $this->datetimes; + $cache = wp_cache_get( $cache_key ); + $data = ! empty( $cache ) ? $cache : $this->datetimes; if ( empty( $data ) || ! is_array( $data ) ) { $table = sprintf( static::TABLE_FORMAT, $wpdb->prefix );