Index: openacs-4/packages/dotlrn-calendar/tcl/dotlrn-calendar-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-calendar/tcl/dotlrn-calendar-procs.tcl,v diff -u -N -r1.85 -r1.85.2.1 --- openacs-4/packages/dotlrn-calendar/tcl/dotlrn-calendar-procs.tcl 30 Jun 2018 21:08:42 -0000 1.85 +++ openacs-4/packages/dotlrn-calendar/tcl/dotlrn-calendar-procs.tcl 23 Feb 2021 13:08:02 -0000 1.85.2.1 @@ -295,9 +295,10 @@ ns_set put $args calendar_id $calendar_id ns_set put $args scoped_p "t" - # don't use the cached version + # Avoid a stale cache + ::dotlrn::dotlrn_user_cache flush -partition_key $user_id $user_id-portal_id dotlrn_calendar::add_portlet_helper \ - [dotlrn::get_portal_id_not_cached -user_id $user_id] \ + [dotlrn::get_portal_id -user_id $user_id] \ $args }