GithubHelp home page GithubHelp logo

cgmartin / edpsuperluminal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from evandotpro/edpsuperluminal

0.0 2.0 0.0 75 KB

This module caches the common Zend\* classes used by your application into a single cache file, reducing reliance on the autoloader. This greatly improves the performance of ZF2.

edpsuperluminal's Introduction

EdpSuperluminal

Version 0.0.1

Introduction

EdpSuperluminal is a ZF2 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 ZF2 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.

For best results, use this module in conjunction with APC.

Installation

  • Clone this module into your vendor/ directory and enable EdpSuperluminal
  • 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.

edpsuperluminal's People

Contributors

evandotpro avatar slamdunk avatar weierophinney avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.