[17:17:47] so if i have an expensive PHP function, where can I cache the results of that in case the same function is called with the same inputs in the same page? [17:20:09] static variable [17:20:40] assuming you're only trying to cache in the course of a single request [17:21:16] yeah, it's for a function that will be called via Lua, but could well be called with identical parameters [17:22:03] is the some class for "random cache of junk" or do I just roll my own with an array? [17:23:01] for now, my key is just a string, but could be hashed [17:23:46] MW has object caches etc [17:24:00] !cache [17:24:01] General information about caches can be seen at , for configuration settings see [17:26:11] hmm, so the application is storing the number of pages with a given quality status for Wikisource index page [17:26:48] so it can change if the index page or any of the Page: pages changes [17:27:12] so I guess that means it's not ParserCache, because it's not tied to a single page rev? [17:29:24] why I am getting this error in file upload Thumbnail column Error creating thumbnail: vips warning: linecache: error in tile 0 x 136 vipspng: out of order read at line 160 vips2png: unable to write "/tmp/transform_5f0c7414c336.png" Error code: 1 [17:30:53] a static array mapping filename -> result array would work, I'm just wondering if there's an abstraction for that kind of memoisation (since MemoizedCallable doesn't look right because the result can change over time) [17:31:09] though I guess with a fairly short TTL it could be quite effective actually [17:32:13] though only RL uses that AFAICT [17:52:56] why I am getting this error while uploading image Unknown warning: "{"warnings":[{"code":"deprecation","html":"A POST request was made without a Content-Type header. This does not work reliably.","data":{"feature":"post-without-content-type"},"module":"main"},{"code":"deprecation-help","html":"Subscribe to the mediawiki-api-announce [17:52:57] mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> [18:35:19] Try saying whether you're using the normal form (the page Special: Upload), the API, or something else. If you're using the API, do what the error message says. [18:35:28] Guest78 [18:36:34] enterprisey I am using Special Upload [19:37:05] Hello good folks. mw 1.36.0, fresh install on Debian. Works, except for Parsoid. It simply say "Error contacting the Parsoid/RESTBase server: http-request-error" and that's it. I see no error in any of the logs, nor google have come up with anything useful. [19:37:27] I'm not familar with parsoid so any idea where to look would be appreciated.