Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r19297: LJSV-1628 (500 errors in journals that h...

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;
     }

Tags: andy, livejournal, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments