1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-29 16:49:47 +02:00

+ memcached test (buggy on Windows at least)

all min_extras apps use the cache path and lib location specified in min/config.php
This commit is contained in:
Steve Clay
2008-09-04 20:50:28 +00:00
parent 1f66aefc4e
commit 66aba1fd2a
9 changed files with 62 additions and 29 deletions

View File

@@ -1,17 +1,15 @@
<?php
/**
* Add the location of Minify's "lib" directory to the include_path. In
* production this could be done via .htaccess or some other method.
*/
ini_set('include_path',
dirname(__FILE__) . '/../min/lib'
. PATH_SEPARATOR . ini_get('include_path')
);
// using same lib path and cache path specified in /min/config.php
/**
* Set $minifyCachePath to a PHP-writeable path to enable server-side caching
* in all examples and tests.
*/
$minifyCachePath = '';
require dirname(__FILE__) . '/../min/config.php';
if (!isset($min_libPath)) {
// default lib path is inside min
$min_libPath = dirname(__FILE__) . '/../min/lib';
}
set_include_path($min_libPath . PATH_SEPARATOR . get_include_path());
$minifyCachePath = isset($min_cachePath)
? $min_cachePath
: '';