#54984"Clear all caches" makes the site unavailable for several seconds
Description
Clear all caches makes the site unavailable for several seconds. This is caused by the fact that the complete classloader cache is killed and rebuilt on this action.
And even more worse: If other requests are coming in during this “warm-up” progress, they fail with an exception in some cases because the autoloader doesn’t find a required file.
to reproduce this open the Backend and the frontend in one Browser and one or more Frontends in other browsers, hit clear all caches in the backend and then hit F5 in the other browser windows. I mostly need only one or two tries to end up with a white page and an exception in the error log. (btw: my classloader cache is configured to use the memcached backend, so it can’t be caused by a slow harddisk)
“clear all caches” happens quite often during clicking around in the backend.
for instance on:
- saving TS templates in Template module
- installing/de-installing extensions
- copying/moving pages recursively
- and some more ….
possible solution:
1. exclude the classloader cache from clear all caches
2. implement a more stable classloader cache rebuilding mechanism
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.