Central cache access for Assets to handle SSL caching. Fixes bug #11131.
This commit is contained in:
parent
f35a9af1fe
commit
5bd5bb48a9
11 changed files with 40 additions and 15 deletions
|
|
@ -826,6 +826,26 @@ sub getAdminConsole {
|
|||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 getCache ( )
|
||||
|
||||
Returns a cache object specific to this asset, and whether or not the request is in SSL mode.
|
||||
|
||||
=cut
|
||||
|
||||
sub getCache {
|
||||
my $self = shift;
|
||||
my $session = $self->session;
|
||||
my $cacheKey = "view_".$self->getId;
|
||||
if ($session->env->sslRequest) {
|
||||
$cacheKey .= '_ssl';
|
||||
}
|
||||
my $cache = WebGUI::Cache->new($session, $cacheKey);
|
||||
return $cache;
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 getContainer ( )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue