Does the latest version of Moodle still support Memcached as a caching store?

Does the latest version of Moodle still support Memcached as a caching store?

by Niko Milala -
Number of replies: 6

image.png

Average of ratings: -
In reply to Niko Milala

Re: Does the latest version of Moodle still support Memcached as a caching store?

by Andrew Lyons -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

No,

It was removed in Moodle 4.2 via MDL-77161 as discussed and agreed upon in MDL-74905. The reason for this was lack of usage, and lack of support for some important performance features. It is also not well suited to clustered environments and does not scale as well.

This was listed in the release notes for Moodle 4.2.

Average of ratings: Useful (1)
In reply to Andrew Lyons

Re: Does the latest version of Moodle still support Memcached as a caching store?

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Redis is open source, as easy to install as Memcache, and does not have all the issues that Memcache did. So, that is likely to be the best replacement to use.
In reply to Tim Hunt

Re: Does the latest version of Moodle still support Memcached as a caching store?

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
What about the storm behind the stricter license of Redis and Valkey filling the vacuum?
In reply to Visvanath Ratnaweera

Re: Does the latest version of Moodle still support Memcached as a caching store?

by Andrew Lyons -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
That one is still unfolding but I suspect that the Valkey server will be backwards compatible with the Redis client for some time, and I imagine that we'll be able to handle it similar to the way we handle mysqli and mariadb.
In reply to Niko Milala

Does the latest version of Moodle still support Memcached as a caching store?

by Eduardo Kraus -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hello, Niko Milala! 😊

Starting from Moodle 4.2, support for Memcached has been removed. This happened because it was performing unsatisfactorily, which negatively impacts the Moodle user experience. But don't worry! Moodle now offers Redis as a robust and open-source alternative.

Redis is known for its efficiency and speed, which means your experience with Moodle will be much more agile. The installation process for Redis is simpler compared to Memcached, making your setup much faster. It also offers additional features, such as data persistence and more complex data structures, which can be very useful in different usage scenarios.

If you need more details or help during the process, we are here to support you! 🎉

Eduardo Kraus
Teacher and programmer

In reply to Eduardo Kraus

Re: Does the latest version of Moodle still support Memcached as a caching store?

by Niko Milala -

Why does the page always timeout when I test cache performance using Redis with 'Cache store performance reporting - 100,000 unique requests per operation,' but it works fine when using file caching?