缩小make temp文件夹

时间:2011-12-10 04:40:42

标签: php minify

所以我让minify在我的网站上工作,但它说

  

注意:请在/min/config.php中设置$ min_cachePath以提高性能。

在那个文件夹中,我有这个吗?

 /**
 * For best performance, specify your temp directory here. Otherwise Minify
 * will have to load extra code to guess. Some examples below:
 */
 //$min_cachePath = '/tmp';
 //$min_cachePath = preg_replace('/^\\d+;/', '', session_save_path());

所以我只需创建一个名为tmp的文件夹并删除//$min_cachePath = '/tmp';前面的//并将其设为$min_cachePath = '/tmp';

或者我是否必须为文件添加权限并在其中添加文本文件?

1 个答案:

答案 0 :(得分:-1)

/tmp是一个标准的系统目录(你不会在任何地方提到它,但我会假设你正在使用Linux或其他一些* nix)。它是每个人都可写的,所以你需要做的就是取消注释该行(删除前导//)。

相关问题