On 03/22/2013 07:16 AM, Platonides wrote:
> APC can do two things:
> 1) Keep the compiled php opcodes, so php execution is faster.
> 2) Allow the application to store values in the web server memory (kept
> accross requests).
> 
> ZendOptimizer only does 1. [...]
> The «APC  is a "must have" for larger MediaWikis» is due to 1. In fact,
> wikimedia is not using APC for 2, but memcached.

With one exception: a [live hack][1] to use apc_inc() instead of rand()
to generate a 32-bit TRANS-ID for HTCP cache purging.

Why is this hack in place? Is it particularly useful for [monitoring
packet loss][2]?

[1]:
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blobdiff;h=897397e41fe14bdf7dcd02eb61a9744880a5e1a3;hb=b7bc01d0ccea6a6a817aed31d781ce6693ee9417;hpb=1256724550556e5e35810bb88b20ef87dbe1ce47

[2]:
https://svn.wikimedia.org/viewvc/mediawiki/trunk/udpmcast/htcpseqcheck.py?view=markup

-- 
Wikipedia user PleaseStand
http://en.wikipedia.org/wiki/User:PleaseStand

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to