fixed: Folders are cached by the client too long for visitors
This commit is contained in:
parent
7bf06aab7b
commit
1db1e783fb
2 changed files with 17 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
7.6.0
|
7.6.0
|
||||||
|
- fixed: Folders are cached by the client too long for visitors
|
||||||
- added variant id template variable to product variant loop
|
- added variant id template variable to product variant loop
|
||||||
- fixed: editting DataForm email fields resets their name
|
- fixed: editting DataForm email fields resets their name
|
||||||
- no longer preloads files that start with .
|
- no longer preloads files that start with .
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,23 @@ sub definition {
|
||||||
return $class->SUPER::definition($session, $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;
|
||||||
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue