Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Clear cache from CP se not working

Status Resolved
Add-on / Version Speedy 1.7
Severity
EE Version 7.2.12

Bhashkar Yadav

Jun 17, 2023

Hii
Hope you are doing great. I am stuck with speedy Cache When ever I tried to Clear All Cache from Speedy Setting page It show this error “Error
One or more cache drivers failed to clear.”  I also tried to select Driver and then Hit Clear All Cache button it show the same error. When I tried to delete the Driver cache It works Please help me to solve this issue. following are the Config file details

$config['speedy_enabled'] = 'yes';
$config['speedy_driver'] = 'file';
$config['speedy_frontedit_check_url'] = 'https://play-fi.net/?ACT=111';

I also try to use this in config file but didn’t work

$config['speedy_break_async'] ='no';
#1

BoldMinded (Brian)

Where did you purchase the addon from? I don’t see a valid license.

#2

Darren O'Brien

Comment has been marked private.

#3

BoldMinded (Brian)

What is the license number?

#4

Darren O'Brien

Comment has been marked private.

#5

BoldMinded (Brian)

Can you share a screenshot of the rest of that Speedy settings page so I can see all the driver options?

#6

BoldMinded (Brian)

Usually this error indicates that more than 1 driver is available, but not correctly configured, so it can’t clear it’s cache.

#7

Darren O'Brien

Comment has been marked private.

#8

Darren O'Brien

I’m not seeing a way to upload a screen shot, so here are the Drive Settings as text:

Driver: Number of Items: Status: Database 0 Available Dummy Available Filesystem 15 Available Default Memcached Unsupported Redis Unsupported Static Unsupported

#9

BoldMinded (Brian)

You can edit the ticket and use the fields provided, or just post a link to the file from a service link Dropbox.

Have you checked the directory permissions on the filesystem? This feels like an issue where PHP doesn’t have permissions to delete files.

#10

BoldMinded (Brian)

Comment has been marked private.

#11

BoldMinded (Brian)

I just shared a link to the most recent build which is what I’m running locally and is a bit newer than the public release. Bhashkar may have to download it b/c only myself and the person who created the ticket can access private messages.

#12

Darren O'Brien

Comment has been marked private.

#13

BoldMinded (Brian)

This is a pretty clear indicator of what is happening

“RecursiveDirectoryIterator::__construct(user/cache/speedy/default_name): Failed to open directory: No such file or directory

Are you sure it’s not “default_site”? What is “default_name”? That last folder is usually the name of the site… is this a multi-site installation? Did you change the name of the default site? I’m not 100% sure this is a Speedy issue, it seems more like a configuration issue, but I’m not sure how you have things configured.

#14

BoldMinded (Brian)

Basically why is Speedy trying to delete from that folder? The error message is accurate, it’s trying to do something and can’t because the folder doesn’t exist.

#15

Darren O'Brien

Comment has been marked private.

#16

BoldMinded (Brian)

I just tested locally in my dev site and it’s able to clear file cache just fine. Try changing the site name from “default_name” to “default_site”, which is the default name EE gives the site when installing EE. See if that makes a difference.

#17

Darren O'Brien

Comment has been marked private.

#18

BoldMinded (Brian)

I’m not sure what the issue could be, but it definitely sounds like something environment specific. The cache clearing works for me locally, and I have unit tests covering these things. As long as the permissions are setup on the directories and files it should be able to delete them.

#19

Darren O'Brien

Comment has been marked private.

#20

BoldMinded (Brian)

Did you check your server’s php error log after attempting to clear the cache? It should be logging any exceptions.

It shows the Database as available b/c that’s the default cache driver and the database is always available, otherwise your site wouldn’t be loading at all. “Available” just means it is working and can be used.

Login to reply