Topic on Manual talk:Extension registration

Kghbln (talkcontribs)

The page informs that you need to use APC or APCu for caching (supposedly for PHP <= 5.4) to improve loading of many extensions.

  1. What about other caching mechanisms such as e.g. memcached or redis?
  2. What about PHP >= 5.5? Will the natively provided caching be enough for this job?
Legoktm (talkcontribs)

It all depends on how many extensions you plan on using. If you just have one or two, caching with memcached/redis will probably slow it down (I haven't actually confirmed this, I'll do that tonight). If you have PHP >= 5.5, you'll need to install the apcu extension, which is included in HHVM.

The code is definitely flexible enough that it should be trivial to implement support for memcached/redis if the performance is good enough.

Kghbln (talkcontribs)

Thank you for your answer. I guess that 15 to 25 extensions is a good pick for an average regular wiki out in the wild. So working with some sort of caching seems to be very advisable for them in the future. I believe that in general it should therefore be possible to choose other ways than just APCu in a sense of providing more options. Thus it will indeed be cool to implement support for other caching mechanisms. So to sum up the current situation:

  • PHP <= 5.4 -> APC which includes user cache
  • PHP >= 5.5 -> APCu since native PHP does not include user cache