diff --git a/docs/CookBook.wiki.md b/docs/CookBook.wiki.md index 975ddfc..6229cd2 100644 --- a/docs/CookBook.wiki.md +++ b/docs/CookBook.wiki.md @@ -7,7 +7,7 @@ By default, Minify uses [Minify\_Cache\_File](http://code.google.com/p/minify/so ### APC ``` -require 'lib/Minify/Cache/APC.php'; +require "$min_libPath/Minify/Cache/APC.php"; $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. ``` -require 'lib/Minify/Cache/Memcache.php'; +require "$min_libPath/Minify/Cache/Memcache.php"; $memcache = new Memcache; $memcache->connect('localhost', 11211); $min_cachePath = new Minify_Cache_Memcache($memcache); diff --git a/min/config.php b/min/config.php index 3b5fd2b..d5d413d 100644 --- a/min/config.php +++ b/min/config.php @@ -60,11 +60,19 @@ $min_allowDebugFlag = false; //$min_cachePath = '/tmp'; //$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 * 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(); @@ -187,12 +195,5 @@ $min_symlinks = array(); $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) ini_set('zlib.output_compression', '0');