purgeCache also cleans up internally cached objects, _parent, _thread

This commit is contained in:
Colin Kuskie 2010-08-19 11:45:18 -07:00
parent dbac3e2ae7
commit 13d65d8b4a
3 changed files with 80 additions and 8 deletions

View file

@ -2350,7 +2350,7 @@ sub publish {
=head2 purgeCache ( )
Purges all cache entries associated with this asset.
Purges all cache entries associated with this asset, CHI, Session->stow and object caches
=cut
@ -2361,6 +2361,7 @@ sub purgeCache {
$stow->delete('assetClass');
$stow->delete('assetRevision');
$self->session->cache->remove("asset".$self->getId.$self->revisionDate);
$self->{_parent};
}