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

Problem with cache invalidation #11

Closed
Swanty opened this issue Apr 7, 2016 · 1 comment
Closed

Problem with cache invalidation #11

Swanty opened this issue Apr 7, 2016 · 1 comment

Comments

@Swanty
Copy link
Contributor

Swanty commented Apr 7, 2016

Let's say I have an article table with 100k articles and 100 of those articles are being opened constantly every second so I would need to cache each of those articles. So far so good.
But once I update one article all of the caches for other articles are purged even though I only need the cache for the specific article that I changed to be purged.

I debugged a bit and saw that :table:article:row:28 is being invalidated and also :table:article and I'm guessing that invalidating :table:article tag causes the issue?

If I set considerTables = false in Tagger.php then cache doesn't seem to be invalidated at all even though there still is the :table:article:row:28 tag

@Swanty
Copy link
Contributor Author

Swanty commented Apr 7, 2016

I think the problem is the is_int() https://github.com/spiritix/lada-cache/blob/52749fa/src/Spiritix/LadaCache/Reflector/QueryBuilder.php#L115

Changing is_int() to ctype_digit() solved the issue

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