Fix the issue with Assets with macro based content not showing the new content to Visitors. Fixes bug #11200.

This commit is contained in:
Colin Kuskie 2009-11-19 09:59:35 -08:00
parent 21e1ac8da6
commit e1c77cf314
7 changed files with 70 additions and 11 deletions

View file

@ -112,7 +112,9 @@ sub handler {
my $asset = getAsset($session, getRequestedAssetUrl($session));
# display from cache if page hasn't been modified.
if ($var->get("userId") eq "1" && defined $asset && !$http->ifModifiedSince($asset->getContentLastModified)) {
if ($var->get("userId") eq "1"
&& defined $asset
&& !$http->ifModifiedSince($asset->getContentLastModified, $session->setting->get('maxCacheTimeout'))) {
$http->setStatus("304","Content Not Modified");
$http->sendHeader;
$session->close;