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
|
|
@ -223,7 +223,8 @@ Renders this asset.
|
|||
sub view {
|
||||
my $self = shift;
|
||||
if (!$self->session->var->isAdminOn && $self->get("cacheTimeout") > 10) {
|
||||
my $out = WebGUI::Cache->new($self->session,"view_".$self->getId)->get;
|
||||
my $cache = $self->getCache;
|
||||
my $out = $cache->get if defined $cache;
|
||||
return $out if $out;
|
||||
}
|
||||
my %var = %{$self->get};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue