Posts made by David Scotson

I'm just learning about this myself but... I think you're fine.

You ideally want to be using just under 100%. Any less and you're wasting memory that could by used by other things (assuming you've got it on the same machine as something else), any more and it'll start bumping things out of the cache.

It looks like you've just hit the bumping things out of the cache level, but memcached is smart enough to ditch the least useful things. For example I noticed that if you update your language strings then the cache will immediately get about 1000 new entries for each of the language files. But they're not used in the normal flow of use so you don't care of those 1000 get bumped out of the cache in favor of things that are hit more often.

Keep an eye on the hit rate. At first it'll be low since the first time any file gets fetched that counts as a miss, so it's entirely expected for there to be a few thousand misses as the cache warms up. But I'd expect it to move up to 99% if things are working okay and those initial misses get dwarfed by the later repeated hits.

Average of ratings: Useful (2)

Thanks, that's good info.

By not having an extension I mean like:

https://moodle.org/theme/image.php/moodleofficial/mod_forum/1385121489/icon

Which the server decides whether to send as SVG or PNG (or GIF) and sets the mimetype appropriately.

It turns out our live servers already have gzip turned on for SVG anyway, it was only the test server that was set up differently. So it all seems to have been working fine for the last year or so.

cheers,

dave

Moodle in English -> Themes -> Gzipping and SVG icons

by David Scotson -
Does anyone know if it's recommended to gzip your SVG icons?

I'm getting told by Google Page Speed service that turning this on could reduce the size of the icons by half, but I don't know if it would break things.

I've already got it on for the other files in the server, but the defaults seem to miss the icons (maybe because they don't have a file extension?)
Average of ratings: -