ewilde-imperial/edp-superluminal
Composer 安装命令:
composer require ewilde-imperial/edp-superluminal
包简介
Modification of https://github.com/EvanDotPro/EdpSuperluminal to work with Laminas
README 文档
README
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.
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.
Installation
- Clone this module into your
vendor/directory and enableEdpSuperluminal - Copy
vendor/.../config/edp-superluminal.config.php.disttoapplication/config/autoload/edp-superluminal.config.phpand edit as required - Add the following line in
public/index.phpimmediately after thechdir()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.
统计信息
- 总下载量: 2.47k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-05-02