From 656418b998eddf0200f3125f923c012f880741a8 Mon Sep 17 00:00:00 2001 From: EarthlingDavey <15802017+EarthlingDavey@users.noreply.github.com> Date: Tue, 19 Nov 2024 16:27:35 +0000 Subject: [PATCH] Update event.php --- public/app/themes/clarity/inc/post-types/event.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/app/themes/clarity/inc/post-types/event.php b/public/app/themes/clarity/inc/post-types/event.php index 082e33663..646a8e75c 100644 --- a/public/app/themes/clarity/inc/post-types/event.php +++ b/public/app/themes/clarity/inc/post-types/event.php @@ -127,6 +127,9 @@ function mojintranet_sort_events($vars) // Delete `event_get_events_...` transients from the database, these are created in EventsHelper. function mojintranet_clear_events_cache() { + + error_log('Clearing event cache.'); + global $wpdb; $wpdb->query( "DELETE FROM `$wpdb->options` WHERE `option_name` LIKE ('_transient_event_get_events_%')" );