antonioribeiro / firewall

Firewall package for Laravel applications
BSD 3-Clause "New" or "Revised" License
1.39k stars 163 forks source link

database cache driver (postgres) exceptions #112

Open corbosman opened 6 years ago

corbosman commented 6 years ago

When I use database as a cache driver and turn on fw-block-attacks middleware I see broken cache entries appear in the database resulting in exceptions. The cache entries appear truncated so they cant be deserialized.

laravel_cache2056e535e689ab723b3f44831b488f05f7fb8b90 | O:48:"PragmaRX\Firewall\Vendor\Laravel\Models\Firewall":26:{s:8:"

If I switch to redis cache there is no problem. This is with latest version of the firewall as of this post.