last minute bug fixes to the new asset session caching stuff
This commit is contained in:
parent
80b3f14b14
commit
5030bac3d8
3 changed files with 9 additions and 6 deletions
|
|
@ -1241,6 +1241,9 @@ Purges all cache entries associated with this asset.
|
|||
|
||||
sub purgeCache {
|
||||
my $self = shift;
|
||||
delete $session{assetLineage};
|
||||
delete $session{assetClass};
|
||||
delete $session{assetRevision};
|
||||
WebGUI::Cache->new(["asset",$self->getId])->delete;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ sub addRevision {
|
|||
$newVersion->updateHistory("created revision");
|
||||
$newVersion->update($self->get);
|
||||
$newVersion->setVersionLock unless ($session{setting}{autoCommit});
|
||||
$newVersion->update($properties) if ($properties);
|
||||
$newVersion->update($properties) if (defined $properties);
|
||||
return $newVersion;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue