Skip to content

Commit 2a7ca9e

Browse files
committed
Added MIT license and readme
1 parent 1b7cfc0 commit 2a7ca9e

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

LICENSE.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright (c) 2012 Tomáš Fejfar
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
TF_ZF1Superluminal plugin
2+
===============
3+
Version 0.0.1
4+
5+
Introduction
6+
------------
7+
This plugin is ZF1 port of [EdpSuperluminal module for ZF2](https://github.com/EvanDotPro/EdpSuperluminal).
8+
9+
Installation
10+
------------
11+
12+
- Copy the library folder over your library folder
13+
- Connect the plugin to your front controller
14+
<?php
15+
Zend_Controller_Front::getInstance()->registerPlugin(new Tf_Controller_Plugin_Superlumibnal());
16+
- The cache is stored in path stored in ZF_CLASS_CACHE constant.
17+
- So ideally you define it in your index.php file
18+
<?php
19+
define('ZF_CLASS_CACHE', APPLICATION_PATH . '/cache.php');
20+
if (file_exists(ZF_CLASS_CACHE)) {
21+
@include ZF_CLASS_CACHE;
22+
}
23+
24+
- The cache is generated on every request, so you may conditionally add/remove it based on anything you like - e.g.: based on request params, time, server, etc.
25+
- BEWARE! Any request generating the cache will be VERY SLOW. To feel the speed, disable the plugin and leave the cache file.
26+

0 commit comments

Comments
 (0)