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_%')" );