Hello All,
I have a little dilemma here. Hopefully someone can lend me a hand.
I have a cluster of front end mediawiki servers with a backend NFS and a MySQL server. In front of those I have a caching device.
My problem is this, the caching device caches the IP and username of people that are anonymous or logged in. If someone logs in as "joe" and browses around and another user name "jack" browses to the same page, "jack" will notice his name changed to "joe".
I am not sure how this is happening... But when I turn off caching on the device the issue goes away and never comes back.
Is there some special character or string I need to exclude from the cache?
Thanks,
Matt
____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
WOW!
Where did that tag come from...
My name is Russ not Matt....
Thanks in advance for your help.
Russ
--- Russ Lavoy ussray_00@yahoo.com wrote:
Hello All,
I have a little dilemma here. Hopefully someone can lend me a hand.
I have a cluster of front end mediawiki servers with a backend NFS and a MySQL server. In front of those I have a caching device.
My problem is this, the caching device caches the IP and username of people that are anonymous or logged in. If someone logs in as "joe" and browses around and another user name "jack" browses to the same page, "jack" will notice his name changed to "joe".
I am not sure how this is happening... But when I turn off caching on the device the issue goes away and never comes back.
Is there some special character or string I need to exclude from the cache?
Thanks,
Matt
____________________________________________________________________________________
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
The first thing to do would be to disable caching for users. You can't do a proper page cache when someone is logged in. And for the IP's set $wgShowIPinHeader to false to remove the IP from the header.
~Daniel Friesen(Dantman) of: -The Gaiapedia (http://gaia.wikia.com) -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG) -and Wiki-Tools.com (http://wiki-tools.com)
Russ Lavoy wrote:
WOW!
Where did that tag come from...
My name is Russ not Matt....
Thanks in advance for your help.
Russ
--- Russ Lavoy ussray_00@yahoo.com wrote:
Hello All,
I have a little dilemma here. Hopefully someone can lend me a hand.
I have a cluster of front end mediawiki servers with a backend NFS and a MySQL server. In front of those I have a caching device.
My problem is this, the caching device caches the IP and username of people that are anonymous or logged in. If someone logs in as "joe" and browses around and another user name "jack" browses to the same page, "jack" will notice his name changed to "joe".
I am not sure how this is happening... But when I turn off caching on the device the issue goes away and never comes back.
Is there some special character or string I need to exclude from the cache?
Thanks,
Matt
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
____________________________________________________________________________________
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
The first thing to do would be to disable caching for users. You can't do a proper page cache when someone is logged in. And for the IP's set $wgShowIPinHeader to false to remove the IP from the header.
~Daniel Friesen(Dantman) of: -The Gaiapedia (http://gaia.wikia.com) -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG) -and Wiki-Tools.com (http://wiki-tools.com)
Russ Lavoy wrote:
WOW!
Where did that tag come from...
My name is Russ not Matt....
Thanks in advance for your help.
Russ
--- Russ Lavoy ussray_00@yahoo.com wrote:
Hello All,
I have a little dilemma here. Hopefully someone can lend me a hand.
I have a cluster of front end mediawiki servers with a backend NFS and a MySQL server. In front of those I have a caching device.
My problem is this, the caching device caches the IP and username of people that are anonymous or logged in. If someone logs in as "joe" and browses around and another user name "jack" browses to the same page, "jack" will notice his name changed to "joe".
I am not sure how this is happening... But when I turn off caching on the device the issue goes away and never comes back.
Is there some special character or string I need to exclude from the cache?
Thanks,
Matt
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
____________________________________________________________________________________
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Disabling local caching will not help my issue since the frontend caching device is the device causing the issue. In fact, if I disable caching (memcached and APC) the servers will take a major hit since they will have to re-compile the pages on every load.
Thanks for the wgShowIPinHeader I am putting that one in right now.
Are there any other suggestions for this caching issue?
Following the Vary headers seems like what may need to happen, but I am looking for multiple things to try out.
Thanks for all they help...
Russ --- DanTMan dan_the_man@telus.net wrote:
The first thing to do would be to disable caching for users. You can't do a proper page cache when someone is logged in. And for the IP's set $wgShowIPinHeader to false to remove the IP from the header.
~Daniel Friesen(Dantman) of: -The Gaiapedia (http://gaia.wikia.com) -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG) -and Wiki-Tools.com (http://wiki-tools.com)
Russ Lavoy wrote:
WOW!
Where did that tag come from...
My name is Russ not Matt....
Thanks in advance for your help.
Russ
--- Russ Lavoy ussray_00@yahoo.com wrote:
Hello All,
I have a little dilemma here. Hopefully someone
can
lend me a hand.
I have a cluster of front end mediawiki servers
with
a backend NFS and a MySQL server. In front of
those I
have a caching device.
My problem is this, the caching device caches the
IP
and username of people that are anonymous or
logged
in. If someone logs in as "joe" and browses
around
and another user name "jack" browses to the same page, "jack" will notice his name changed to "joe".
I am not sure how this is happening... But when
I
turn off caching on the device the issue goes
away
and never comes back.
Is there some special character or string I need
to
exclude from the cache?
Thanks,
Matt
____________________________________________________________________________________
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
____________________________________________________________________________________
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
That's not what I'm talking about. Disable caching on the frontend caching device when the user is logged in. Your frontend cache is basically the same as Squid and Varnish. You have to disable them for users because those kind of caches can never cache user data right. I believe Wikimedia does this by having the frontend cache check for the user cookie.
~Daniel Friesen(Dantman) of: -The Gaiapedia (http://gaia.wikia.com) -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG) -and Wiki-Tools.com (http://wiki-tools.com)
Russ Lavoy wrote:
Disabling local caching will not help my issue since the frontend caching device is the device causing the issue. In fact, if I disable caching (memcached and APC) the servers will take a major hit since they will have to re-compile the pages on every load.
Thanks for the wgShowIPinHeader I am putting that one in right now.
Are there any other suggestions for this caching issue?
Following the Vary headers seems like what may need to happen, but I am looking for multiple things to try out.
Thanks for all they help...
Russ --- DanTMan dan_the_man@telus.net wrote:
The first thing to do would be to disable caching for users. You can't do a proper page cache when someone is logged in. And for the IP's set $wgShowIPinHeader to false to remove the IP from the header.
~Daniel Friesen(Dantman) of: -The Gaiapedia (http://gaia.wikia.com) -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG) -and Wiki-Tools.com (http://wiki-tools.com)
Russ Lavoy wrote:
WOW!
Where did that tag come from...
My name is Russ not Matt....
Thanks in advance for your help.
Russ
--- Russ Lavoy ussray_00@yahoo.com wrote:
Hello All,
I have a little dilemma here. Hopefully someone
can
lend me a hand.
I have a cluster of front end mediawiki servers
with
a backend NFS and a MySQL server. In front of
those I
have a caching device.
My problem is this, the caching device caches the
IP
and username of people that are anonymous or
logged
in. If someone logs in as "joe" and browses
around
and another user name "jack" browses to the same page, "jack" will notice his name changed to "joe".
I am not sure how this is happening... But when
I
turn off caching on the device the issue goes
away
and never comes back.
Is there some special character or string I need
to
exclude from the cache?
Thanks,
Matt
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
____________________________________________________________________________________
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
DanTMan wrote:
That's not what I'm talking about. Disable caching on the frontend caching device when the user is logged in. Your frontend cache is basically the same as Squid and Varnish. You have to disable them for users because those kind of caches can never cache user data right. I believe Wikimedia does this by having the frontend cache check for the user cookie.
It's stated on the Vary: header Vary: Accept-Encoding,Cookie
Furthermore, the exact cookies are statet at X-Vary-Options: but i think few caching devices would understand it.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Platonides wrote:
DanTMan wrote:
That's not what I'm talking about. Disable caching on the frontend caching device when the user is logged in. Your frontend cache is basically the same as Squid and Varnish. You have to disable them for users because those kind of caches can never cache user data right. I believe Wikimedia does this by having the frontend cache check for the user cookie.
It's stated on the Vary: header Vary: Accept-Encoding,Cookie
Note though that by default, just about everything's going to be marked as *private* in the Cache-Control header. This means that a shared cache like your proxy server shouldn't cache *anything*.
To mark output as cachable by an intermediate proxy cache, you need to delve into the terror that is $wgUseSquid... in which case your system needs to be set up to send notifications to the proxy cache to clear cached pages when they change.
This isn't very well documented... but I see there's some notes at: http://meta.wikimedia.org/wiki/Squid_caching
Furthermore, the exact cookies are statet at X-Vary-Options: but i think few caching devices would understand it.
X-Vary-Options is for our customized version of Squid, to tell it that it's ok to combine or ignore certain values of certain headers that we specify in Vary. In our case:
* It's told to ignore any cookies other than the ones our servers use for session and auth data -- this allows JavaScript tools to use cookies for their settings without disrupting the HTTP caching
* It's told to only pay attention to 'gzip' in Accept-Encoding, since that's the only non-plain encoding option we offer. This allows us to combine cached output for browsers which add various different things to that list which we ignore anyway.
This will have no effect on other system which don't know X-Vary-Options; they'll just fail to cache a few things.
- -- brion vibber (brion @ wikimedia.org)
Russ Lavoy wrote:
My problem is this, the caching device caches the IP and username of people that are anonymous or logged in. If someone logs in as "joe" and browses around and another user name "jack" browses to the same page, "jack" will notice his name changed to "joe".
I am not sure how this is happening... But when I turn off caching on the device the issue goes away and never comes back.
Is there some special character or string I need to exclude from the cache?
Thanks,
Matt
Your cache device needs to follow Vary: headers. Probably it has some option to do so.
If my caching device follows "Vary:" headers it will cache everything but the usernames and such?
Just want to clarify.
Thanks,
Russ --- Platonides Platonides@gmail.com wrote:
Russ Lavoy wrote:
My problem is this, the caching device caches the
IP
and username of people that are anonymous or
logged
in. If someone logs in as "joe" and browses
around
and another user name "jack" browses to the same page, "jack" will notice his name changed to "joe".
I am not sure how this is happening... But when
I
turn off caching on the device the issue goes
away
and never comes back.
Is there some special character or string I need
to
exclude from the cache?
Thanks,
Matt
Your cache device needs to follow Vary: headers. Probably it has some option to do so.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
So the vary header is the best solution for this issue?
Thanks,
Russ
--- Russ Lavoy ussray_00@yahoo.com wrote:
If my caching device follows "Vary:" headers it will cache everything but the usernames and such?
Just want to clarify.
Thanks,
Russ --- Platonides Platonides@gmail.com wrote:
Russ Lavoy wrote:
My problem is this, the caching device caches
the
IP
and username of people that are anonymous or
logged
in. If someone logs in as "joe" and browses
around
and another user name "jack" browses to the
same
page, "jack" will notice his name changed to "joe".
I am not sure how this is happening... But
when
I
turn off caching on the device the issue goes
away
and never comes back.
Is there some special character or string I
need
to
exclude from the cache?
Thanks,
Matt
Your cache device needs to follow Vary: headers. Probably it has some option to do so.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
____________________________________________________________________________________
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
mediawiki-l@lists.wikimedia.org