guilhermevillote commented on issue #12393:
URL: https://github.com/apache/apisix/issues/12393#issuecomment-3024829288
The `lrucache` is only invalidated when the consumer's `conf_version`
changes. However, since credentials added via
`/consumers/{id}/credentials/{cred-id}` are stored separately and **not**
reflected in the consumer's main configuration, updating or adding a credential
does not change the consumer's `conf_version`.
As a result, any cached data tied to the consumer (such as plugin
configurations loaded via `find_consumer`) may become stale and not reflect the
updated credential, unless the APISIX instance is restarted or the cache
expires naturally.
This may cause an inconsistency: when credentials are attached to consumers
via the /`credentials` endpoint, changes to those credentials do not trigger
cache invalidation. Therefore, the `lrucache` may continue serving outdated
plugin configurations until it expires or is manually refreshed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]