diff --git a/classes/class-eo-calendar-widget.php b/classes/class-eo-calendar-widget.php index f2b6e085..7f0eeb01 100644 --- a/classes/class-eo-calendar-widget.php +++ b/classes/class-eo-calendar-widget.php @@ -198,10 +198,7 @@ static function generate_output( $month, $args = array() ) { $today = new DateTime( 'now', eo_get_blog_timezone() ); - //Ensure a different cache key for those who can and cannot see private blogs - $args['_priv'] = current_user_can( 'read_private_events' ) ? '_priv' : false; - - $key = $month->format( 'YM' ) . serialize( $args ) . get_locale() . $today->format( 'Y-m-d' ); + $key = $month->format( 'YM' ) . serialize( $args ) . get_locale() . $today->format( 'Y-m-d' ) . get_current_user_id(); $calendar = get_transient( 'eo_widget_calendar' ); if ( ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) && $calendar && is_array( $calendar ) && isset( $calendar[$key] ) ) { return $calendar[$key];