-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
getItemsByTag(tagname) does not returns all items with given tag name though item is saved with same tag name.. #719
Comments
Hello, I'm unable to reproduce this bug and this feature is hardly-tested: As you can see, the test above is well-testing the tags feature so I'm not explaining the bug you're describing. Can you give me a test script that reproduce this bug ? Cheers, |
I have created two methods set_data for saving items and delete_key_by_prefix method to delete partially matched keys. //set item method
Please note this issue is not always replicated but when concurrent users start access webserver then it is replicated randomly. So if method to list all available keys ie from any tags it would be of great help. Thanks in advance. |
Remember that for obvious performances reasons YOU SHOULD NOT load all keys from cache at all, this is the reason why the PSRs did not specified such behavior. Sorry :) |
Configuration
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Save multiple items with key prefix 'cachekey_' eg. 'cachekey_01', 'cachekey_022', 'cachekey_033', 'cachekey_014', 'cachekey_305', 'cachekey_ffg0' etc.
Save these items with a shared tag in my case '' tagname is used. I tried with static tagname ('pfc') but does not help.
Now list all items stored with tagname '' using getItemsByTag('') method. It should return all keys but unfortunately it doesnot returns all keys. eg. it returns all except 'cachekey_014'. However, haskey('cachekey_014'), $item->get() returns data.
Expected behavior
getItemsByTag('') should returns all keys sharing the tagname ''. So that i can check for partially matched key and delete the matched keys.
Current behavior
All items that share the shared tags are removed only if it is listed by getItemsByTag(''). But few items are not listed. Due to this reason i could not delete key to recreate key with fresh data and showing stale data.
The text was updated successfully, but these errors were encountered: