fix - Updated Snippets not being cleared from cache

This commit is contained in:
Roy Johnson 2006-12-06 18:15:01 +00:00
parent e795f06fd8
commit 36ef194db1
2 changed files with 17 additions and 0 deletions

View file

@ -51,6 +51,8 @@
- Major change: password recovery is now based on profile fields rather than
email account access
*** PLEASE READ THE GOTCHAS ***
- fix: Updated Snippets not being cleared from cache
7.2.3
- fix: minor bug with new template vars in Auth::createAccount

View file

@ -136,6 +136,21 @@ sub indexContent {
$indexer->setIsPublic(0);
}
#-------------------------------------------------------------------
=head2 purgeCache ( )
Extending purgeCache to handle caching of the rendered snippet
=cut
sub purgeCache {
my $self = shift;
WebGUI::Cache->new($self->session,"view__".$self->getId)->delete;
WebGUI::Cache->new($self->session,"view_1_".$self->getId)->delete;
$self->SUPER::purgeCache();
}
#-------------------------------------------------------------------
sub view {