2017 © Pedro Peláez
 

library webcache-middleware

Static aka Html pages cache for Slim3 middleware stack

image

sylweriusz/webcache-middleware

Static aka Html pages cache for Slim3 middleware stack

  • Monday, May 21, 2018
  • by sylweriusz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 63 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 17 Versions
  • 0 % Grown

The README.md

webcache-middleware

Static pages cache for Slim3 middleware stack, (*1)

WebCache will save only GET request with status 200., (*2)

Install

$ composer require sylweriusz/webcache-middleware

Usage

Declare middleware, (*3)

$app->add(new \Slim\Middleware\WebcacheRedis('192.168.1.12:6379'));

Cache will try to detect ID of document, first numerical value in url parts., (*4)

Example: http://example.org/article/123456/title.html after detection ID = 123456, (*5)

and if it fail to detect it will assume ID = 0, (*6)

if You want to delete all articles with this ID You should do something like this, (*7)

$webcache = new \Slim\Middleware\WebcacheRedis('192.168.1.12:6379');
$webcache->delete(123456);

Disabling cache inside application route, (*8)

\Slim\Middleware\WebcacheRedis::setTtl(0);

Change default TTL (in seconds) inside application route, (*9)

\Slim\Middleware\WebcacheRedis::setTtl(600);

Smarty plugin

Define parts of html that should be always fresh, no mather what., (*10)

<body>
<div class="right-content">
{fresh id="reusable_box"}some html content{/fresh}
</div>

You can even declare them empty (as readonly) on another page and hope it will just work., (*11)

<body>
<div class="right-content">
{fresh id="reusable_box" readonly=1}{/fresh}
</div>

The Versions

21/05 2018

dev-master

9999999-dev

Static aka Html pages cache for Slim3 middleware stack

  Sources   Download

GPL-3.0

The Requires

 

middleware cache redis slim webcache

21/05 2018

0.6.5

0.6.5.0

Static aka Html pages cache for Slim3 middleware stack

  Sources   Download

GPL-3.0

The Requires

 

middleware cache redis slim webcache

15/05 2018

0.6.4

0.6.4.0

Static aka Html pages cache for Slim3 middleware stack

  Sources   Download

GPL-3.0

The Requires

 

middleware cache redis slim webcache

11/05 2018

0.6.3

0.6.3.0

Static aka Html pages cache for Slim3 middleware stack

  Sources   Download

GPL-3.0

The Requires

 

middleware cache redis slim webcache

11/05 2018

0.6.2

0.6.2.0

Static aka Html pages cache for Slim3 middleware stack

  Sources   Download

GPL-3.0

The Requires

 

middleware cache redis slim webcache

11/05 2018

0.6.1

0.6.1.0

Static aka Html pages cache for Slim3 middleware stack

  Sources   Download

GPL-3.0

The Requires

 

middleware cache redis slim webcache

11/05 2018

0.6

0.6.0.0

Static aka Html pages cache for Slim3 middleware stack

  Sources   Download

GPL-3.0

The Requires

 

middleware cache redis slim webcache

10/05 2018

0.5

0.5.0.0

Static aka Html pages cache for Slim3 middleware stack

  Sources   Download

GPL-3.0

The Requires

 

middleware cache redis slim webcache

09/05 2018

0.4.2

0.4.2.0

Static aka Html pages cache for Slim3 middleware stack

  Sources   Download

GPL-3.0

The Requires

 

middleware cache redis slim webcache

09/05 2018

0.4.1

0.4.1.0

Static aka Html pages cache for Slim3 middleware stack

  Sources   Download

GPL-3.0

The Requires

 

middleware cache redis slim webcache

09/05 2018

0.4

0.4.0.0

Static aka Html pages cache for Slim3 middleware stack

  Sources   Download

GPL-3.0

The Requires

 

middleware cache redis slim webcache

08/05 2018

0.3.1

0.3.1.0

Static aka Html pages cache for Slim3 middleware stack

  Sources   Download

GPL-3.0

The Requires

 

middleware cache redis slim webcache

08/05 2018

0.3

0.3.0.0

Static aka Html pages cache for Slim3 middleware stack

  Sources   Download

GPL-3.0

The Requires

 

middleware cache redis slim webcache

07/05 2018

0.2

0.2.0.0

Static aka Html pages cache for Slim3 middleware stack

  Sources   Download

GPL-3.0

The Requires

 

middleware cache redis slim webcache

14/03 2018

0.1.3

0.1.3.0

Static aka Html pages cache for Slim3 middleware stack

  Sources   Download

GPL-3.0

The Requires

 

middleware cache redis slim webcache

13/03 2018

0.1.2

0.1.2.0

Static aka Html pages cache for Slim3 middleware stack

  Sources   Download

GPL-3.0

The Requires

 

middleware cache redis slim webcache

04/04 2016

0.1.1

0.1.1.0

Static aka Html pages cache for Slim3 middleware stack

  Sources   Download

GPL-3.0

The Requires

 

middleware cache redis slim webcache