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
Describe the bug
When you use metadata cache with redis adapter, and you call $cache->reset() it sends flushdb to redis server. This clears whole redis database, which can cause a lot of issues.
Expected behavior
Either clear only set keys (store keys internally in Redis adapter) or maybe use prefix mechanism?
Also, documentation should reflect this.
I did not check other adapters.
Details
Phalcon version: 5.6.2
PHP Version: 8.5.2
Operating System: Linux
Installation type: compiled from source
Server: nginx + fpm
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
There is some work that I did for v6 that will simplify and help the storage classes. I need to align it with v5 and also fix the clear method. The prefixed keys are not handled the same in all classes so I need to write some more tests to ensure that clear deletes what it is supposed to.
Describe the bug
When you use metadata cache with redis adapter, and you call
$cache->reset()
it sendsflushdb
to redis server. This clears whole redis database, which can cause a lot of issues.Expected behavior
Either clear only set keys (store keys internally in Redis adapter) or maybe use prefix mechanism?
Also, documentation should reflect this.
I did not check other adapters.
Details
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: