Skip to content

LaravelCacheStore throws error for database (MySQL) and failover cache drivers #21

@oddvalue

Description

@oddvalue

When using the database or failover laravel cache drivers the rate limiter store throws a "The store was unable to update the limit." error.

This has been tested and confirmed with a MySQL database. The issue is not present for SQLite databases.

The issue appears to be caused by the too_many_attempts_limit value not changing between requests and the cache store returning false because although the caching was successful, nothing was updated.

Demo app illustrating the issue: https://github.com/oddvalue/saloon-rate-limiter-demo/actions/runs/19132434533/job/54676260195

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions