fixed: Folders are cached by the client too long for visitors

This commit is contained in:
Graham Knop 2008-09-18 19:51:31 +00:00
parent 7bf06aab7b
commit 1db1e783fb
2 changed files with 17 additions and 0 deletions

View file

@ -1,4 +1,5 @@
7.6.0
- fixed: Folders are cached by the client too long for visitors
- added variant id template variable to product variant loop
- fixed: editting DataForm email fields resets their name
- no longer preloads files that start with .

View file

@ -111,7 +111,23 @@ sub definition {
return $class->SUPER::definition($session, $definition);
}
#-------------------------------------------------------------------
=head2 getContentLastModified
Overridden to check the revision dates of children as well
=cut
sub getContentLastModified {
my $self = shift;
my $mtime = $self->get("revisionDate");
foreach my $child (@{ $self->getLineage(["children"],{returnObjects=>1}) }) {
my $child_mtime = $child->getContentLastModified;
$mtime = $child_mtime if ($child_mtime > $mtime);
}
return $mtime;
}
#-------------------------------------------------------------------