One of our website's is receiving a "failed to clean cache" error when we click the Clean Cache button in the Joomla admin.
The issue is, that the error is very intermittent and therefore hard to replicate/debug. Additionally, there was no error_log in the front or admin error log file to help.
Could you take a look/help us work out how to identify the issue?
If it is intermittent and there are nop errors, then it will be hard to see what is causing it.
See if you can get the same error by repeatedly clearing the cache via the Joomla cache manager page.
It could be something to do with read/write locks on folders from the server, that lock cache files while (and shortly after) they get created.
Thanks for getting back to me. It is currently happening more frequently, perhaps because the cache has built up to a large size? I didn't clear Joomla's cache yet so that you could see what was going on more clearly first.
You probably get the error when it times out, because of the large amount of cache. So Cache Cleaner can't finish clearing all the cache before the timeout.
You are also querying an external url, which might time out or might sometimes refuse connections.
You could try to investigate why you are getting so much cache that it times out in the first place.
Maybe some extension is filling up your cache folders when it shouldn't.
Thanks for advising. We are using the plugin to clear the Yootheme Page Builder's (
drive.google.com/file/d/1F7gXp7hv82sdvBWnvJtHRe5Q2gLKF2Ju
) which is an asynchronous process and doesn't come back with a success/fail status. So when the cache is large this could cause the Regular Labs error response.
Could it be possible to have a setting for the Cache Cleaner to trigger custom folders asynchronously so that they don't interfere with the rest of the cache clearing tasks?
Apologies for the confusion. Yootheme Page Builder's is asynchronous when they trigger their cache clearing but the Regular Labs extension Custom Folder parameter waits for the cache to finish clearing.
When I switch Empty Custom Folders off the cache clears successfully. This implies that Regular Labs is struggling to clear the templates/yootheme/cache folder, possible because of its size.
Would this be a correct assumption? If so, how do we get Regular Labs to handle larger cache sizes?