Title: Minify
Author: Scott Taylor
Published: <strong>2012 年 5 月 24 日</strong>
Last modified: 2012 年 9 月 2 日

---

搜索插件

![](https://ps.w.org/minify/assets/banner-772x250.png?rev=548606)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/minify_d4d4d4.svg)

# Minify

 作者：[Scott Taylor](https://profiles.wordpress.org/wonderboymusic/)

[下载](https://downloads.wordpress.org/plugin/minify.0.2.zip)

 * [详情](https://cn.wordpress.org/plugins/minify/#description)
 * [评价](https://cn.wordpress.org/plugins/minify/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/minify/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/minify/#developers)

 [支持](https://wordpress.org/support/plugin/minify/)

## 描述

Similar to what we use on eMusic – this software is still experimental, but take
a look!

Automagically concatenates JS and CSS files that are output in wp_head() and wp_footer()–
stores / serves them from Memcached (if installed) or Database. In a load-balanced
environment, the generation of flat files can be expensive and hard to distribute.
Minify takes advantage of Memcached and Site Options / Transients to do the work
once and share it among all servers in your cluster. File names are dynamically-
generated to allow cache-busting of a CDN like Akamai that doesn’t always cache-
bust by query string.

New .htaccess rule!
 RewriteRule ^([_0-9a-zA-Z-]+)?/?wp-content/cache/minify-(.+)-(.*).(
css|js)$ /wp-content/plugins/minify/make.php?hash=$2&type=$4&incr=$3&site=$1 [L]

## 安装

You MUST add this rewrite rule to your .htaccess file or httpd.conf file and then
restart your server:
 RewriteRule ^([_0-9a-zA-Z-]+)?/?wp-content/cache/minify-(.
+)-(.*).(css|js)$ /wp-content/plugins/minify/make.php?hash=$2&type=$4&incr=$3&site
=$1 [L]

You need to install Memcached on your servers and use Ryan’s WP Object Cache backend
in WordPress:
 https://wordpress.org/extend/plugins/memcached/

If you don’t want to use Memcached:
 1) you’re weird 2) all of the action will happen
in the database

## 评价

![](https://secure.gravatar.com/avatar/8dc8d8bf6d36dd75a0013c1ed39bedb840f0fb2b8248341eeb95984a582dbfc5?
s=60&d=retro&r=g)

### 󠀁[Works fine](https://wordpress.org/support/topic/works-fine-632/)󠁿

 [O_Breda](https://profiles.wordpress.org/o_breda/) 2017 年 1 月 14 日

I am pleased with the functionality of the plugin. Thanks for everything.

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/minify/reviews/)

## 贡献者及开发者

「Minify」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Scott Taylor ](https://profiles.wordpress.org/wonderboymusic/)

[帮助将「Minify」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/minify)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/minify/)，查看[SVN仓库](https://plugins.svn.wordpress.org/minify/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/minify/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/minify/)。

## 更新日志

#### 0.1

 * Initial release

#### 0.1.1

 * Added a missing semicolon, props Robert

#### 0.2

 * change your .htaccess rule to: RewriteRule ^([_0-9a-zA-Z-]+)?/?wp-content/cache/
   minify-(.+)-(.*).(css|js)$ /wp-content/plugins/minify/make.php?hash=$2&type=$
   4&incr=$3&site=$1 [L]

## 额外信息

 *  版本 **0.2**
 *  最后更新：**14 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **3.4.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/minify/)
 * 标签
 * [assets](https://cn.wordpress.org/plugins/tags/assets/)[css](https://cn.wordpress.org/plugins/tags/css/)
   [JS](https://cn.wordpress.org/plugins/tags/js/)[minify](https://cn.wordpress.org/plugins/tags/minify/)
   [performance](https://cn.wordpress.org/plugins/tags/performance/)
 *  [高级视图](https://cn.wordpress.org/plugins/minify/advanced/)

## 评级

 3.7 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/minify/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/minify/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/minify/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/minify/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/minify/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/minify/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/minify/reviews/)

## 贡献者

 *   [ Scott Taylor ](https://profiles.wordpress.org/wonderboymusic/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/minify/)