2017 © Pedro Peláez
 

library laravel-cache-protract

File based cache prolonger for Laravel

image

desmart/laravel-cache-protract

File based cache prolonger for Laravel

  • Thursday, November 27, 2014
  • by DeSmart
  • Repository
  • 1 Watchers
  • 1 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

laravel-cache-protract

File based cache prolonger for Laravel., (*2)

Background

Laravel's file cache is rather simple. When it's expired the cache file is removed. Depending on implementation this cache gets regenerated during the request., (*3)

On heavy loaded applications this means that during the time of regeneration every request bumps into empty cache file and tries to regenerate it. This gap can lead to DoS - application will stop to respond., (*4)

This package is meant to lower the risk of that. Request hits expired cache, prolongs its expiration and in the meantime tries to regenerate the cache. For the time of regeneration other threads will get old contents., (*5)

Installation

composer require desmart/laravel-cache-protract:~1.0.0

In app/config/app.php add DeSmart\CacheProtract\ServiceProvider to providers., (*6)

In app/config/cache.php change driver to file-protract., (*7)

Optionally you can publish, and change config file., (*8)

The Versions

27/11 2014

dev-master

9999999-dev

File based cache prolonger for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Radoslaw Mejer

27/11 2014

1.0.0

1.0.0.0

File based cache prolonger for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Radoslaw Mejer