Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clear_caches is caching the wrong tables #20

Closed
johndwells opened this issue Sep 8, 2017 · 2 comments
Closed

clear_caches is caching the wrong tables #20

johndwells opened this issue Sep 8, 2017 · 2 comments

Comments

@johndwells
Copy link

Correct me if I'm wrong, but shouldn't the table names in the clear_caches.sh script be:

"templatecachecriteria"
"templatecacheelements"
"templatecaches"

And not:

"cache"
"templatecaches"

?

@khalwat
Copy link
Contributor

khalwat commented Sep 8, 2017

So the cache table is used if you have set Craft's cacheMethod to db

The ./clear_caches.sh script only clears out your cache tables/directories/redis caches and the templatecaches table.

It's arguable whether it should clear out templatecacheelements and templatecachecriteria, I'd have to investigate a bit more to see if it makes a difference.

@khalwat
Copy link
Contributor

khalwat commented Sep 8, 2017

Ahhhhh... Brandon Kelly just jogged my memory... if you clear the templatecaches rows, it will cascade and delete the templatecachecriteria and templatecacheelements rows as well.

I remember originally when I wrote this, I had it clearing all of those tables, but I was getting errors on the templatecachecriteria and templatecacheelements tables, because they were already deleted.

@khalwat khalwat closed this as completed Sep 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants