When recompiling an S2 layer, delete from memcache for system layers
         as well as user layers.

        Codemerge from LiveJournal; prepared for Dreamwidth by <user 
name=denise>. 

diffs (18 lines):

diff -r 4cbbd2cbb6de -r 6d0952de71cd cgi-bin/LJ/S2.pm
--- a/cgi-bin/LJ/S2.pm  Thu Jun 24 15:05:56 2010 -0500
+++ b/cgi-bin/LJ/S2.pm  Thu Jun 24 18:20:14 2010 -0500
@@ -1346,10 +1346,10 @@ sub layer_compile
         $dbcm->do("REPLACE INTO s2compiled2 (userid, s2lid, comptime, 
compdata) ".
                   "VALUES (?, ?, UNIX_TIMESTAMP(), ?)", undef,
                   $layer->{'userid'}, $lid, $gzipped) or die "replace into 
s2compiled2 (lid = $lid)";
-
-        # delete from memcache; we can't store since we don't know the exact 
comptime
-        LJ::MemCache::delete([ $lid, "s2c:$lid" ]);
-    }
+    }
+
+    # delete from memcache; we can't store since we don't know the exact 
comptime
+    LJ::MemCache::delete([ $lid, "s2c:$lid" ]);
 
     # caller might want the compiled source
     if (ref $opts->{'compiledref'} eq "SCALAR") {
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to