mirror of
https://github.com/moodle/moodle.git
synced 2025-02-16 05:45:36 +01:00
The Redis cache store and session handler both do a 'ping()' after connecting to Redis. This is unnecessary because the connect() call has just checked the network connection and it's hardly likely that the server has gone down since then. According to my profiling, both connect() and ping() take measurable time when talking to a separate server, i.e. a few milliseconds. So it's not the case that connect() doesn't really talk to the server, as I initially wondered. If using Redis on a separate (non-localhost) server for both session and cache store, removing these ping calls can save a millisecond or two per request.