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

[ljcom] r10001: LJSUP-7909. Need to clear cache for new ...

Committer: gprochaev
LJSUP-7909. Need to clear cache for new file

U   trunk/cgi-bin/LJ/FileStore.pm
Modified: trunk/cgi-bin/LJ/FileStore.pm
===================================================================
--- trunk/cgi-bin/LJ/FileStore.pm	2011-02-08 06:36:33 UTC (rev 10000)
+++ trunk/cgi-bin/LJ/FileStore.pm	2011-02-08 08:37:02 UTC (rev 10001)
@@ -23,6 +23,8 @@
     my $dbh = LJ::get_db_writer();
     my $res = $dbh->do("REPLACE INTO files (path, mime_type, content_length, change_time) VALUES (?, ?, ?, unix_timestamp(now()))", undef, $args{path}, $args{mime_type}, $args{content_length});
 
+    LJ::MemCache::delete($args{path});
+
     return $res ? $result : undef;
 }
 

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