Flush cache for User and Group tests to pass.

Add group cache clear to Group.pm
templateId clash due fixed
This commit is contained in:
Colin Kuskie 2006-04-15 02:32:38 +00:00
parent 799eb114eb
commit 1c6fec6695
4 changed files with 20 additions and 9 deletions

View file

@ -151,8 +151,7 @@ An override for the default offset of the grouping. Specified in seconds.
sub addUsers {
my $self = shift;
my $users = shift;
WebGUI::Cache->new($self->session, $self->getId)->delete;
$self->session->stow->delete("isInGroup");
$self->clearCaches();
my $expireOffset = shift || $self->get("expireOffset");
foreach my $uid (@{$users}) {
next if ($uid eq '1' and !isIn($self->getId, 1, 7));