wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r9527: Not used memcache result

Committer: gprochaev
Not used memcache result

U   trunk/cgi-bin/LJ/FileStore.pm
Modified: trunk/cgi-bin/LJ/FileStore.pm
===================================================================
--- trunk/cgi-bin/LJ/FileStore.pm	2010-09-22 05:36:28 UTC (rev 9526)
+++ trunk/cgi-bin/LJ/FileStore.pm	2010-09-22 07:14:30 UTC (rev 9527)
@@ -39,8 +39,8 @@
             my $cache_for = $LJ::MOGILE_PATH_CACHE_TIMEOUT || 3600;
             $file_info = $dbh->selectrow_hashref("SELECT mime_type, content_length, change_time FROM files WHERE path = ?", undef, $args{path});
             LJ::MemCache::set($args{path}, $file_info, $cache_for);
-            $LJ::FILES{$args{path}} = $file_info;
         }
+        $LJ::FILES{$args{path}} = $file_info;
     }
     $LJ::FILES{$args{path}}->{paths} = $paths;
 

Tags: ljcom, pm, wisest-owl
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