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: Cache clearing and ‘Redis server went away’
Status | Resolved |
Add-on / Version | Speedy 1.3.1 |
Severity | |
EE Version | 5.4.0 |
DSite
Apr 19, 2021Hi Brian,
I’m working with Speedy on a client site for the first time. I figured I’d start simple, and I configured the site for static caching and added a tag to the template for a single-page channel. I see that the static cache file gets created on my first visit. So far so good.
But then I tried to set up cache clearing rules.
I tried setting up a random tag:
{exp:speedy:static tags="panda"}
And I set up my channel to clear that tag.
And I see that the tag is available to clear in the Speedy control panel.
But updating my channel entry does not clear the cache for that channel.
The changes appear on the page only when I “Clear Driver > Static” and “Clear Cache” in the Speedy CP.
So that’s my primary issue. It may very well be user error.
But as I was troubleshooting it, I came across another error, that might be related or it might not. It might be a bug or it might not.
When I try to clear the ‘panda’ tag, I get the following error message:
Tried to clear tag:
Exception Caught
Redis server went away
user/addons/speedy/Service/Drivers/RedisDriver.php:105
Stack Trace: Please include when reporting this error
#0 user/addons/speedy/Service/Drivers/RedisDriver.php(105): Redis->hGetAll('speedy/redis/de…')
#1 user/addons/speedy/Service/CacheBreaker.php(275): BoldMinded\Cache\Service\Drivers\RedisDriver->deleteItem('speedy/redis/de…')
#2 user/addons/speedy/mcp.speedy.php(1608): BoldMinded\Cache\Service\CacheBreaker->clearTags(Array)
#3 [internal function]: Speedy_mcp->tag_clearing()
#4 ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php(1684): call_user_func_array(Array, Array)
#5 ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php(964): EllisLab\ExpressionEngine\Controller\Addons\Addons->getModuleSettings('speedy', 'tag_clearing', Array)
#6 [internal function]: EllisLab\ExpressionEngine\Controller\Addons\Addons->settings('speedy', 'tag_clearing')
#7 ee/EllisLab/ExpressionEngine/Core/Core.php(268): call_user_func_array(Array, Array)
#8 ee/EllisLab/ExpressionEngine/Core/Core.php(118): EllisLab\ExpressionEngine\Core\Core->runController(Array)
#9 ee/EllisLab/ExpressionEngine/Boot/boot.php(156): EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))
#10 html/admin.php(147): require_once('...')
#10 html/admin.php(147): require_once('...')
When I try to “Refresh Cache” or “Clear All Drivers” I get the same error message, just starting at line 244.
I do not mention Redis in my config.php. It is listed as “Unconfigured” in Speedy. And as far as I can tell, I don’t mention Redis anywhere else in EE.
So I’m stumped, and I’m hoping that you can help me sort things out.
Thanks,
Matt
BoldMinded (Brian)
Apr 19, 2021
Looks like it might be a Redis config issue
https://github.com/nextcloud/nextcloudpi/issues/609
There are some other results from Google, but this looks like a server issue.
DSite
Apr 19, 2021
I did Google it, I promise. But only in conjunction with “Boldminded Speedy.” *headdesk* My apologies.
Okay, I’ll work with the web host to see if there’s a config that might be causing this. I’ll be back if I’m able to fix it but still unable to clear my caches as expected.
Have a lovely day.
DSite
Jun 10, 2021
Hi again!
I’m still wrestling with getting Speedy configured. My host doesn’t allow the access to make the change you suggested and they are unwilling to make it for us. Instead, they set up a Redis server for us, but I’m having trouble getting that to work as well.
Before I go too far down the Redis path, I noticed that you had a similar discussion in https://boldminded.com/support/ticket/2289 with Hop Studios and managed to get something or other resolved. Unfortunately, most of the salient details are hidden. Is there anything from that discussion that might help in my case?
Thanks,
Matt
BoldMinded (Brian)
Jun 10, 2021
Comment has been marked private.
DSite
Jun 10, 2021
Oh! I think that might have done the trick. It seems as though I now have static caching up and running properly.
Thank you. I’m so glad I came back here to look before banging my head against Redis more.