madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r12477: LJSUP-13301: Main page optimization

Committer: sbelyaev
LJSUP-13301: Main page optimization
U   trunk/cgi-bin/LJ/Nav.pm
Modified: trunk/cgi-bin/LJ/Nav.pm
===================================================================
--- trunk/cgi-bin/LJ/Nav.pm	2012-08-16 08:25:19 UTC (rev 12476)
+++ trunk/cgi-bin/LJ/Nav.pm	2012-08-16 09:14:51 UTC (rev 12477)
@@ -27,7 +27,10 @@
    
     my $cached = LJ::MemCache::get($memcache_key);
     if ($cached) {
-        return @{LJ::JSON->from_json($cached)};
+        my %POST = LJ::Request->post_params;
+        unless (exists $POST{'ljpost:on'} || exists $POST{'ljpost:off'}) {
+            return @{LJ::JSON->from_json($cached)};
+        }
     }
 
     my @nav;

Tags: ljcom, madeon, pm, sbelyaev
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