Freek Van der Herten has a new Laravel package named “laravel-responsecache” that enables you to speed up your site, by caching the entire response. Here are the benefits you gain by installing this package:
All successful responses (that is a response with a status code in the 200 or 300 range) to a GET-requests will now be cached for a week. If the response of a specific route or controller should never be cached middleware can be added it that prevents caching. Furthermore, each logged in user will have their own separate cache. Cached responses can be stored in any configured repository in Laravel. You could easily share a cache between servers by using memcached.
0 comments:
Post a Comment
Thanks