Last modified: 2008-09-12 17:09: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 T17543, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15543 - site CSS <link> URLs including $wgUser->mTouched;
site CSS <link> URLs including $wgUser->mTouched;
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.14.x
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-10 01:37 UTC by Splarka
Modified: 2008-09-12 17:09 UTC (History)
1 user (show)

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


Attachments

Description Splarka 2008-09-10 01:37:01 UTC
r39766 rearranged some of the CSS calls in Skin.php and (as far as I can tell, although maybe it happened in an earlier revision) as a consequence of this:

	if( $wgUser->isLoggedIn() ) {
		$siteargs['smaxage'] = '0';
		$siteargs['ts'] = $wgUser->mTouched;
	}

now appears before the call to the site's dynamic CSS pages (Common.css, Print.css, Handhead.css, {skin}.css), which each include $siteargs. This causes all these pages to invalidate cache whenever a logged in user changes any preferences. As none of these depend on user preferences, they should not be getting invalidated by the ts= parameter. Suggest moving the $siteargs['ts'] = $wgUser->mTouched; or whole isLoggedIn() check /after/ the SiteCSS check.
Comment 1 Splarka 2008-09-10 01:58:17 UTC
Followup, $wgUser->mTouched; is updated every new session. This is not only on a change of preferences, but every login, and every new browser sessions. That is, if you close your browser and reopen it, all site css cache is now invalid. Bumping to "high", but dropping severity to "minor".
Comment 2 Alexandre Emsenhuber [IAlex] 2008-09-10 12:13:43 UTC
fixed in r40697.
Comment 3 Brion Vibber 2008-09-12 17:09:19 UTC
Bumping priority back low -- I have no idea why it was bumped to "high". In fact, losing the assurance that site and user CSS will be up to date might be a bad thing.

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


Navigation
Links