mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-12-01 01:50 am

[dw-free] Community archives not updating

[commit: http://hg.dwscoalition.org/dw-free/rev/fbecdd90f36a]

http://bugs.dwscoalition.org/show_bug.cgi?id=2047

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 [personal profile] afuna.

Files modified:
  • cgi-bin/LJ/User.pm
--------------------------------------------------------------------------------
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";
 
--------------------------------------------------------------------------------