fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-11-10 12:47 pm

[dw-free] Memcache clear tool

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

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

Comment is no longer true. Also, add to list of valid privs.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/LJ/User.pm
  • cgi-bin/ljlib.pl
--------------------------------------------------------------------------------
diff -r ba456f5dde11 -r fb1907d28578 cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm	Wed Nov 10 20:44:26 2010 +0800
+++ b/cgi-bin/LJ/User.pm	Wed Nov 10 20:47:23 2010 +0800
@@ -8127,7 +8127,6 @@ sub update_user
 # </LJFUNC>
 sub wipe_major_memcache
 {
-    # FIXME: this function is unused as of Aug 2009 - kareila
     my $u = shift;
     my $userid = LJ::want_userid($u);
     foreach my $key ("userid","bio","talk2ct","talkleftct","log2ct",
diff -r ba456f5dde11 -r fb1907d28578 cgi-bin/ljlib.pl
--- a/cgi-bin/ljlib.pl	Wed Nov 10 20:44:26 2010 +0800
+++ b/cgi-bin/ljlib.pl	Wed Nov 10 20:47:23 2010 +0800
@@ -2432,6 +2432,7 @@ sub list_valid_args {
         entry_redirect => "Access to /misc/entry_redirect",
         invites        => "Access to some invites functionality under /admin/invites",
         largefeedsize  => "Overrides synsuck_max_size for a feed",
+        memcacheclear  => "Access to /admin/memcache_clear",
         memcacheview   => "Access to /admin/memcache",
         mysqlstatus    => "Access to /admin/mysql_status",
         navtag         => "Access to /admin/navtag",
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org