Skip to content

Conversation

@JonPurvis
Copy link
Contributor

@JonPurvis JonPurvis commented Nov 24, 2025

Fixes #21

This PR fixes an issue when using the Laravel cache store which would prevent the limit from being updated for applications using mysql. This is happening because if the data already exists in the store, nothing changes and mysql reports 0 rows were updated, this plugin was then treating that as not successful and would then throw a LimitException.

Before
Screenshot 2025-11-24 at 19 00 14

After
Screenshot 2025-11-24 at 19 01 52

Copy link
Member

@Sammyjo20 Sammyjo20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great fix Jon! 🚀

@Sammyjo20 Sammyjo20 merged commit c1367dd into saloonphp:v2 Nov 27, 2025
37 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants