From 0663474871208d3fd678c47112e640270103bb1e Mon Sep 17 00:00:00 2001 From: Mike Auteri Date: Thu, 25 Jan 2024 16:39:47 -0500 Subject: [PATCH] Small code cleanup. --- includes/core/classes/class-event.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }