這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

CC-Minify

外掛說明

The CC-Minify plugin optimizes your website’s CSS and JS files by combining, minifying, grouping and caching them to speed up your page’s load time.
This plugin uses the Minify PHP library.
Additionally using Apache with mod_rewrite (or other server supports URL rewriting) it can rewrite URL to simplify the CSS and JS paths, for example:
from: http://example.com/wp-content/cache/styles/all.css to: http://example.com/styles/all.css
from: http://example.com/wp-content/cache/scripts/head.js to: http://example.com/scripts/head.js
This plugin is compatible with Multisite WordPress installations.

Tips & Tricks

You can check if a css and/or js files has been served from a cache by opening the page’s source code.
If files are served from cache, you should see a comment with the date and time when it was last cached, for example:

Requirements

  1. Server supports URL rewriting: Apache with mod_rewrite, IIS 7.0+ permalink support or nginx.
  2. Read/Write access to wp-content/cache directory.
  3. PHP interpreter version >= 5.3.

螢幕擷圖

  • CC-Minify Settings - Visit the 'Settings > Minify' page, select your preferred options and save them.

安裝方式

From your WordPress Dashboard

  1. Go to ‘Plugins > Add New’
  2. Search for ‘CC-Minify’
  3. Activate the plugin from the Plugin section on your WordPress Dashboard.

From WordPress.org

  1. Download ‘CC-Minify’.
  2. Upload the ‘CC-Minify’ directory to your ‘/wp-content/plugins/’ directory using your favorite method (ftp, sftp, scp, etc…)
  3. Activate the plugin from the Plugin section in your WordPress Dashboard.

Once Activated

  1. Visit the ‘Settings > Minify’ page, select your preferred options and save them.
  2. To properly rewrite URLs, add the rules listed in ‘Settings > Minify’ to the beginning of your .htaccess file.

Multisite

The plugin can be activated and used for just about any use case.

  • Activate at the site level to load the plugin on that site only.
  • Activate at the network level for full integration with all sites in your network (this is the most common type of multisite installation).

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈CC-Minify〉的開發相關工作。

參與者

將〈CC-Minify〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

Release date: 07.11.2016

  • First stable version of the plugin.