Disable Syndicated Content caching when admin is on.
This commit is contained in:
parent
ece881d855
commit
cb79dddf00
2 changed files with 7 additions and 4 deletions
|
|
@ -5,6 +5,7 @@
|
|||
- fixed #8914: epoch for calendar/List View for Calendar
|
||||
- fixed #10044: Gallery: Javascript, CSS included in body
|
||||
- fixed #10409: Problem using hash in metadata possible values
|
||||
- fixed #10396: Syndicated Content wobject not displaying edit controls
|
||||
|
||||
7.7.7
|
||||
- Added EMS Schedule table
|
||||
|
|
|
|||
|
|
@ -334,17 +334,19 @@ Returns the rendered output of the wobject.
|
|||
=cut
|
||||
|
||||
sub view {
|
||||
my $self = shift;
|
||||
my $self = shift;
|
||||
my $session = $self->session;
|
||||
|
||||
# try the cached version
|
||||
my $cache = WebGUI::Cache->new($self->session,"view_".$self->getId);
|
||||
my $cache = WebGUI::Cache->new($session,"view_".$self->getId);
|
||||
my $out = $cache->get;
|
||||
return $out if ($out ne "");
|
||||
return $out if ($out ne "" && !$session->var->isAdminOn);
|
||||
#return $out if $out;
|
||||
|
||||
# generate from scratch
|
||||
my $feed = $self->generateFeed;
|
||||
$out = $self->processTemplate($self->getTemplateVariables($feed),undef,$self->{_viewTemplate});
|
||||
if (!$self->session->var->isAdminOn && $self->get("cacheTimeout") > 10) {
|
||||
if (!$session->var->isAdminOn && $self->get("cacheTimeout") > 10) {
|
||||
$cache->set($out,$self->get("cacheTimeout"));
|
||||
}
|
||||
return $out;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue