diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index ce05a5ecb..d30831062 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -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 diff --git a/lib/WebGUI/Asset/Wobject/SyndicatedContent.pm b/lib/WebGUI/Asset/Wobject/SyndicatedContent.pm index 17de55e50..37035c62b 100644 --- a/lib/WebGUI/Asset/Wobject/SyndicatedContent.pm +++ b/lib/WebGUI/Asset/Wobject/SyndicatedContent.pm @@ -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;