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:
@@ -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
|
||||
: '';
|
||||
|
Reference in New Issue
Block a user