Committer: ailyin
LJSV-1628 (500 errors in journals that have corrupt memcache data about their style layers)U trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2.pm =================================================================== --- trunk/cgi-bin/LJ/S2.pm 2011-06-15 10:32:35 UTC (rev 19296) +++ trunk/cgi-bin/LJ/S2.pm 2011-06-16 00:34:08 UTC (rev 19297) @@ -1164,7 +1164,7 @@ my $memkey = [$styleid, "s2sl:$styleid"]; $stylay = LJ::MemCache::get($memkey) unless $force; - if ($stylay) { + if ( $stylay && ref $stylay eq 'HASH' && $stylay->{'layout'} ) { $LJ::S2::REQ_CACHE_STYLE_ID{$styleid} = $stylay; return $stylay; }