Clear 'access only' memcache key when posting.  This addresses most of 
the 'calendar isn't accurate' issues, although it's still not entirely correct.

        Patch by afuna. 

diffs (22 lines):

diff -r d8cbd831f342 -r fbecdd90f36a cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm        Mon Nov 30 16:58:40 2009 +0000
+++ b/cgi-bin/LJ/User.pm        Tue Dec 01 01:50:03 2009 +0000
@@ -1999,11 +1999,17 @@ sub clear_daycounts
     #  g# = access or groupmask
     #  p = only public entries
     my @memkind;
+    my $access = 0;
     foreach my $security ( @security )
     {
         push @memkind, "p" if $security eq 'public'; # public
         push @memkind, "g$security" if $security =~ /^\d+/;
-    }
+
+        $access++ if $security eq 'public' || ( $security != 1 &&  $security 
=~ /^\d+/ );
+    }
+    # FIXME: temporary workaround, but doesn't cover custom groups
+    push @memkind, "g1" if $access;
+
     # any change to any entry security means this must be expired
     push @memkind, "a";
 
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to