2017 © Pedro Peláez
 

library edp-superluminal

Modification of https://github.com/EvanDotPro/EdpSuperluminal to work with ZF3

image

ewilde-imperial/edp-superluminal

Modification of https://github.com/EvanDotPro/EdpSuperluminal to work with ZF3

  • Wednesday, May 2, 2018
  • by ewilde-imperial
  • Repository
  • 0 Watchers
  • 0 Stars
  • 38 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 280 % Grown

The README.md

EdpSuperluminal

Introduction

EdpSuperluminal is a Laminas module that caches the Zend classes used by your application into a single file. Including this file greatly reduces the execution time of your application, as the calls to the standard autoloader are almost entirely eliminated., (*1)

Warning: After installing and enabling this module, it may seem as though your Laminas application is running faster than the speed of light (superluminal). Don't panic. This is just an illusion and no laws of physics are being violated., (*2)

Installation

  • Clone this module into your vendor/ directory and enable EdpSuperluminal
  • Copy vendor/.../config/edp-superluminal.config.php.dist to application/config/autoload/edp-superluminal.config.php and edit as required
  • Add the following line in public/index.php immediately after the chdir() call:
<?php
chdir(dirname(__DIR__));
define('ZF_CLASS_CACHE', 'data/cache/classes.php.cache'); if (file_exists(ZF_CLASS_CACHE)) require_once ZF_CLASS_CACHE;
  • In your browser, go to http://yourapp/?EDPSUPERLUMINAL_CACHE to build the initial class. You should do this for any page that is (a) dependency heavy, and/or (b) every page with a different dependency graph. Each call will append to the cache with any newly discovered classes. REQUESTS WHERE YOU ARE BUILDING THE CACHE WILL BE SLOW, THIS IS NORMAL.
  • Once the cache is built, you can disable and delete EdpSuperluminal, leaving line you added to public/index.php.

The Versions

02/05 2018

dev-master

9999999-dev https://github.com/ewilde-imperial/EdpSuperluminal

Modification of https://github.com/EvanDotPro/EdpSuperluminal to work with ZF3

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Kirill Timoszenko
by Ed Wilde

zendframework zf3 performance