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: Caches are not clearing when an entry is saved

Status Resolved
Add-on / Version Speedy 1.9.1
Severity
EE Version 7.4.6

Dmitry Kuchev

Apr 10, 2024

Hello!

Just installed Speedy and poking around. So, I noticed that caches (tags) aren’t clearing after entry saving. Here is a video: https://drive.google.com/file/d/1KScctBMof03JyZUAGUmhw7fmliRWGXJ2/view?usp=sharing

Am I doing something wrong here?

#1

Dmitry Kuchev

And I have a couple of questions, is it okay?

  1. Do I need to turn off native caching in templates and tags?

  2. Can I use {url_title} for Cache Clearing Rules as a tag to clear items that have same {url_title} added dynamically?

#2

BoldMinded (Brian)

Yes turn off native caching. Yes url_title should work, it’s noted in the docs.

#3

Dmitry Kuchev

Thanks! Sorry, it seems you’ve missed the first comment:

> So, I noticed that caches (tags) aren’t clearing after entry saving. Here is a video: https://drive.google.com/file/d/1KScctBMof03JyZUAGUmhw7fmliRWGXJ2/view?usp=sharing > > Am I doing something wrong here?

#4

BoldMinded (Brian)

After saving an entry did you check Speedy to see if it still showed 2 cached items? If so then since you’re using the filesystem my guess is that it doesn’t have permission to delete files. Try the database driver and see if that works.

#5

Dmitry Kuchev

Comment has been marked private.

#6

Dmitry Kuchev

Comment has been marked private.

#7

BoldMinded (Brian)

Comment has been marked private.

#8

BoldMinded (Brian)

My first thought is it sounds like the DB user you have doesn’t have permissions to fetch the necessary info from the db schema. I’ll look into adding something in the code to prevent hits error but its still something you should probably sort out on your end if you need to use the DB driver and want to see the stats.

#9

BoldMinded (Brian)

Adding screenshot of the template code for the add_tag call so I can replicate it.

#10

BoldMinded (Brian)

This is a relatively easy fix that’ll be included in the next release. Change line 490 of mod.speedy.php to this:

$this->dynamic_tags .= '|' . trim($tag['content']);

Login to reply