2017 © Pedro Peláez
 

library heartbeat

Cache warms all files found under specified path

image

gundars/heartbeat

Cache warms all files found under specified path

  • Sunday, November 13, 2016
  • by gundars
  • Repository
  • 0 Watchers
  • 1 Stars
  • 44 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Heartbeat

Heartbeat helps with: - slow file reads on cloud hostings where cache is not on the same storage as application (Azure); - slow file includes from composer;, (*1)

Heartbeat finds all the files in your application, includes and "cache" warms, (*2)

Best performance calling Heartbeat every 5 minutes having application + vendors under 20 000 files, (*3)

Install

composer require gundars/heartbeat ~0.1

Call in CLI

> php vendor/gundars/heartbeat/load.php

Scanning /var/www/public/zend/approot
10102 files loaded in: 0h 2m 49s

Call with input parameter

Paste this code in your index.php:, (*4)

use Heartbeat\Heartbeat;
if (array_key_exists('heartbeat', $_REQUEST)) {
    $heartBeat = new Heartbeat();
    $heartBeat->load(__DIR__);
}


and call via http(s) `http://example.com/?heartbeat=true`

### Manual Loading
<?php use Heartbeat\Heartbeat; $heartBeat = new Heartbeat(); $heartBeat->->load(__DIR__ . '/../../../');

### Verbose Prints all included files
$heartBeat->verbose()->load(__DIR__);

### Die stops script execution after file include is finished
$heartBeat->verbose()->load(__DIR__, true);

The Versions

13/11 2016

dev-master

9999999-dev

Cache warms all files found under specified path

  Sources   Download

MIT

by Avatar gundars

file cache composer azure include filestorage warm

12/11 2016

dev-develop

dev-develop

Cache warms all files found under specified path

  Sources   Download

MIT

by Avatar gundars

file cache composer azure include filestorage warm

12/11 2016

0.1.3

0.1.3.0

Cache warms all files found under specified path

  Sources   Download

MIT

by Avatar gundars

file cache composer azure include filestorage warm

12/11 2016

0.1.2

0.1.2.0

Cache warms all files found under specified path

  Sources   Download

MIT

by Avatar gundars

12/11 2016

0.1.1

0.1.1.0

Cache warms all files found under specified path

  Sources   Download

MIT

by Avatar gundars

12/11 2016

0.1.0

0.1.0.0

Cache warms all files found under specified path

  Sources   Download

MIT

by Avatar gundars