mirror of
https://github.com/mrclay/minify.git
synced 2025-08-13 09:34:54 +02:00
Fixes issue 299 on Windows by reducing length of cache filenames
This commit is contained in:
@@ -565,7 +565,7 @@ class Minify {
|
|||||||
{
|
{
|
||||||
$name = preg_replace('/[^a-zA-Z0-9\\.=_,]/', '', self::$_controller->selectionId);
|
$name = preg_replace('/[^a-zA-Z0-9\\.=_,]/', '', self::$_controller->selectionId);
|
||||||
$name = preg_replace('/\\.+/', '.', $name);
|
$name = preg_replace('/\\.+/', '.', $name);
|
||||||
$name = substr($name, 0, 200 - 34 - strlen($prefix));
|
$name = substr($name, 0, 100 - 34 - strlen($prefix));
|
||||||
$md5 = md5(serialize(array(
|
$md5 = md5(serialize(array(
|
||||||
Minify_Source::getDigest(self::$_controller->sources)
|
Minify_Source::getDigest(self::$_controller->sources)
|
||||||
,self::$_options['minifiers']
|
,self::$_options['minifiers']
|
||||||
|
Reference in New Issue
Block a user