You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a class with method which gets data from MySQL.
In this method I use:
if ($cacheItem->isMiss()) {
$cacheItem->lock();
...
$cacheItem->save();
}
All looks well, but in fact when I call lock() also called clear() and storeData() methods.
I my app I have 1000+ objects. Every object use different cache keys.
So, when I try to get 1000+ objects at one time, I have a many-many (100000+) call of clear() method.
It very slows down app.
Im sorry if this text is too difficult to understand. If you need I can write this in Russian :)
The text was updated successfully, but these errors were encountered:
I have a class with method which gets data from MySQL.
In this method I use:
All looks well, but in fact when I call
lock()
also calledclear()
andstoreData()
methods.I my app I have 1000+ objects. Every object use different cache keys.
So, when I try to get 1000+ objects at one time, I have a many-many (100000+) call of
clear()
method.It very slows down app.
Im sorry if this text is too difficult to understand. If you need I can write this in Russian :)
The text was updated successfully, but these errors were encountered: