Skip to content

Commit

Permalink
Update event.php
Browse files Browse the repository at this point in the history
  • Loading branch information
EarthlingDavey committed Nov 19, 2024
1 parent 2e61584 commit 656418b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/app/themes/clarity/inc/post-types/event.php
Original file line number Diff line number Diff line change
Expand Up @@ -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_%')" );

Expand Down

0 comments on commit 656418b

Please sign in to comment.