diff --git a/includes/core/classes/class-event.php b/includes/core/classes/class-event.php index 2bc2053c1..ee45c10b6 100644 --- a/includes/core/classes/class-event.php +++ b/includes/core/classes/class-event.php @@ -408,9 +408,9 @@ protected function get_formatted_datetime( string $which = 'start', bool $local = true ): string { - $cache_key = 'formatted_datetime_' . md5( $format . $which . ( $local ? 'local' : 'gmt' ) ); - + $cache_key = 'formatted_datetime_' . md5( $format . $which . ( $local ? 'local' : 'gmt' ) ); $cached_date = get_transient( $cache_key ); + if ( false !== $cached_date ) { return $cached_date; }