Search
Other Cache Cleaner questions
Forum

Intermittent failed cache

Webx Franklin's Avatar Webx Franklin
Hi team,

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?

Thanks,

Paul C
Peter van Westen's Avatar Peter van Westen ADMIN
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.
Please post a rating at the Joomla! Extensions Directory
Webx Franklin's Avatar Webx Franklin
Hi Peter,

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.

I've attached a link to the screenshot of the error here: drive.google.com/file/d/1JJnaB9bmfMQYvIood3hprD-_M6GXVu3Y

Confidential information:
(hidden)


Could you take a look?

Thanks,

Paul C
Peter van Westen's Avatar Peter van Westen ADMIN
It is working fine now for me.

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.
Please post a rating at the Joomla! Extensions Directory
Webx Franklin's Avatar Webx Franklin
Hi Peter,

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?

Thanks,

Paul C
Peter van Westen's Avatar Peter van Westen ADMIN
You can make Cache Cleaner ignore specific folders. There is no option to make it sometimes ignore it.
Please post a rating at the Joomla! Extensions Directory
Webx Franklin's Avatar Webx Franklin
Hi Peter,

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?

Thanks,

Paul C
Peter van Westen's Avatar Peter van Westen ADMIN
Prevent the cache folder from getting too large. Clear it more often. You could set it up to clear on interval or via a cronjob.
Please post a rating at the Joomla! Extensions Directory
Webx Franklin's Avatar Webx Franklin
Thanks Peter,

We have set your plugin to clear every 15 minutes to see if that helps. We'll report back if we have any issues.

Paul C
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription