mozilla/kumascript — pull request #10 by lmorchard (2012-04-20 20:16:58+00:00)
Title: Bug 747158 page exists

This depends on PR #9, review that one first.

This is 1/2 of the optimization for `wiki.pageExists`. It makes HTTP HEAD requests against Kuma, but caches the results in memcache.

The other 1/2 will be a Kuma pull request, offering a management command that preloads memcache with results straight from the database.

Between the two halves, `wiki.pageExists` should be a cache hit 99% of the time, with the 1% of misses covered by HTTP HEAD requests. (No, I didn't actually measure those percentages.)