Force the page layout to use different caches for HTTPS vs HTTP requests.

Fixes bug #10674.
This commit is contained in:
Colin Kuskie 2009-08-19 18:32:56 +00:00
parent 1c9908f490
commit 1ee674c727
2 changed files with 6 additions and 1 deletions

View file

@ -1,4 +1,5 @@
7.7.18
- fixed #10674: CDN URLs are cached across HTTP/HTTPS accesses
- fixed: Copied assets don't always get URL extensions added
- fixed #10789: Inbox message states not deleted when a user is deleted
- fixed #10790: Data Form doesn't always auto-commit version tags

View file

@ -409,7 +409,11 @@ sub www_view {
) {
my $check = $self->checkView;
return $check if (defined $check);
my $cache = WebGUI::Cache->new($session, "view_".$self->getId);
my $cacheKey = "view_".$self->getId;
if ($session->env->sslRequest) {
$cacheKey .= '_ssl';
}
my $cache = WebGUI::Cache->new($session, $cacheKey);
my $out = $cache->get if defined $cache;
unless ($out) {
$self->prepareView;