Skip to content

Using cache and rate-limit plugin together #519

@gino

Description

@gino

Hi there,

I am wondering if the cache plugin and the rate-limit plugin are compatible to work with each other.

I got a pretty confusing issue at the moment. For some reason, my endpoints are still being rate limited even though they are cached. I see that they are cached in my (in this case) Redis store but my endpoint still caught a "Too many attempts" exception.

To me it feels like the endpoint is still receiving requests even though it has been cached. I am trying to avoid rate limiting by caching my requests - but because of this issue, it seems like it's still getting ratelimited even though it is cached.

I did a quick test and it looks like this doesn't happen anymore after removing the HasRateLimits trait from my request but I am not too sure yet if this causes the issue.

Are there any others with similar problems?

I'll try to look into the issue and post some more updates/information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions