Last modified: 2012-04-12 13:54:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32850, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30850 - maintenance/changePassword.php does not purge (APC) cache
maintenance/changePassword.php does not purge (APC) cache
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.16.x
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-10 18:16 UTC by Jille Timmermans
Modified: 2012-04-12 13:54 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jille Timmermans 2011-09-10 18:16:43 UTC
When I change a users password with maintenance/changePassword.php the user can still not log in due to the user-data being cached in APC. (I use CACHE_ACCEL.)

This is probably due to APC having distinct shared-memory in CGI and CLI.
Comment 1 Sam Reed (reedy) 2011-09-10 18:47:02 UTC
r96732 should hopefully fix that in trunk
Comment 2 Brion Vibber 2011-09-10 21:17:34 UTC
That doesn't look like it'll help; the fundamental problem with using APC etc for data caching is this inability for command-line scripts to update or delete the cached items that the web processes access.

This will be only one of thousands of instances of this problem; the only ways to fix it would be general, using a cache system that can be accessed by all processes -- my personal recommendation is to just set up memcached instead! ;)
Comment 3 Sam Reed (reedy) 2011-09-10 21:19:38 UTC
(In reply to comment #2)
> That doesn't look like it'll help;

Yup, I realised and reverted soon after :)
Comment 4 Jille Timmermans 2011-09-11 10:11:30 UTC
A bit nasty, but certainly effective: We could let all cache-deletes (or even all actions) be done through web-requests. So the changePassword script calls http://url.to.mediawiki/w/api.php?action=cache-delete&key=user-123

That might cause problems with race-conditions however.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links