Still not working very well... I purged http://commons.wikimedia.org/wiki/Image:Cc-by_new_white.svg yesterday. It then reappeared, but had disappeared again today. And purging it seems to make any difference to me.
On 9/17/07, Gregory Maxwell gmaxwell@gmail.com wrote:
On 9/17/07, Simetrical Simetrical+wikilist@gmail.com wrote:
On 9/16/07, Nick Jenkins nickpj@gmail.com wrote:
Presumably though if the size of a thumbnail is 0 bytes, then MediaWiki can safely assume that something went wrong, and that the cache is bad. E.g. Would an "if( filesize( $thumbnail ) === 0 )" or similar test help when determining whether to use the cache or not?
Thumbnail caches don't involve MediaWiki at all, do they? The change would have to be made with Squid, I think (which, ideally, would have gracefully refused to cache new things when it hit 0 bytes, rather than caching zero-byte files).
This is a change that I tried to advocate a long while back because of the intermittent issue with zero byte replies (mostly seen with large media files .. non-thumbnail stuff). While we were using the external popup media player I ran an additional squid just for media caching which was configured not to cache tiny files.
The reason we can't do this everywhere is that certain responses which we really would want to be cached are zero bytes. ... In general anything that isn't cached is a potential outage causing agent.
For example, what if we did not cache zero byte files and I replaced a very widely used image with one which was actually zero bytes long?
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l