mirror of
https://github.com/mrclay/minify.git
synced 2025-08-11 00:24:11 +02:00
Merge pull request #524 from mrclay/mrclay-mrclay-patch-1
Use $min_libPath in examples and move it within config.php
This commit is contained in:
@@ -7,7 +7,7 @@ By default, Minify uses [Minify\_Cache\_File](http://code.google.com/p/minify/so
|
|||||||
### APC
|
### APC
|
||||||
|
|
||||||
```
|
```
|
||||||
require 'lib/Minify/Cache/APC.php';
|
require "$min_libPath/Minify/Cache/APC.php";
|
||||||
$min_cachePath = new Minify_Cache_APC();
|
$min_cachePath = new Minify_Cache_APC();
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ $min_cachePath = new Minify_Cache_APC();
|
|||||||
|
|
||||||
You must create and connect your Memcache object then pass it to `Minify_Cache_Memcache`'s constructor.
|
You must create and connect your Memcache object then pass it to `Minify_Cache_Memcache`'s constructor.
|
||||||
```
|
```
|
||||||
require 'lib/Minify/Cache/Memcache.php';
|
require "$min_libPath/Minify/Cache/Memcache.php";
|
||||||
$memcache = new Memcache;
|
$memcache = new Memcache;
|
||||||
$memcache->connect('localhost', 11211);
|
$memcache->connect('localhost', 11211);
|
||||||
$min_cachePath = new Minify_Cache_Memcache($memcache);
|
$min_cachePath = new Minify_Cache_Memcache($memcache);
|
||||||
|
@@ -60,11 +60,19 @@ $min_allowDebugFlag = false;
|
|||||||
//$min_cachePath = '/tmp';
|
//$min_cachePath = '/tmp';
|
||||||
//$min_cachePath = preg_replace('/^\\d+;/', '', session_save_path());
|
//$min_cachePath = preg_replace('/^\\d+;/', '', session_save_path());
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Path to Minify's lib folder. If you happen to move it, change
|
||||||
|
* this accordingly.
|
||||||
|
*/
|
||||||
|
$min_libPath = dirname(__FILE__) . '/lib';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To use APC/Memcache/ZendPlatform for cache storage, require the class and
|
* To use APC/Memcache/ZendPlatform for cache storage, require the class and
|
||||||
* set $min_cachePath to an instance. Example below:
|
* set $min_cachePath to an instance. Example below:
|
||||||
*/
|
*/
|
||||||
//require dirname(__FILE__) . '/lib/Minify/Cache/APC.php';
|
//require "$min_libPath/Minify/Cache/APC.php";
|
||||||
//$min_cachePath = new Minify_Cache_APC();
|
//$min_cachePath = new Minify_Cache_APC();
|
||||||
|
|
||||||
|
|
||||||
@@ -187,12 +195,5 @@ $min_symlinks = array();
|
|||||||
$min_uploaderHoursBehind = 0;
|
$min_uploaderHoursBehind = 0;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Path to Minify's lib folder. If you happen to move it, change
|
|
||||||
* this accordingly.
|
|
||||||
*/
|
|
||||||
$min_libPath = dirname(__FILE__) . '/lib';
|
|
||||||
|
|
||||||
|
|
||||||
// try to disable output_compression (may not have an effect)
|
// try to disable output_compression (may not have an effect)
|
||||||
ini_set('zlib.output_compression', '0');
|
ini_set('zlib.output_compression', '0');
|
||||||
|
Reference in New Issue
Block a user