Skip to content

Commit

Permalink
Cast cache lifetime to integer by default (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightwatson authored Apr 3, 2024
1 parent afcc7c5 commit e69b3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/responsecache.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* When using the default CacheRequestFilter this setting controls the
* default number of seconds responses must be cached.
*/
'cache_lifetime_in_seconds' => env('RESPONSE_CACHE_LIFETIME', 60 * 60 * 24 * 7),
'cache_lifetime_in_seconds' => (int) env('RESPONSE_CACHE_LIFETIME', 60 * 60 * 24 * 7),

/*
* This setting determines if a http header named with the cache time
Expand Down

0 comments on commit e69b3f3

Please sign in to comment.