
內容簡介
CC-Minify 外掛可以通過合併、壓縮、分組和緩存 CSS 和 JS 文件,加快網站頁面的加載速度。
該外掛使用了 Minify PHP 库。
此外,使用具有 mod_rewrite 功能的 Apache(或其他支持 URL 重寫的服務器),可以將 URL 重寫以簡化 CSS 和 JS 路徑,例如:
從: http://example.com/wp-content/cache/styles/all.css 到: http://example.com/styles/all.css
從: http://example.com/wp-content/cache/scripts/head.js 到: http://example.com/scripts/head.js
此外,此外掛支持 Multisite WordPress 安裝。
提示與技巧
您可以通過在打開的頁面代碼中找到某個 CSS 和/或 JS 文件以查看其是否從緩存中提取。
如果文件從緩存中提取,您應該看到帶有最後緩存日期和時間的注釋,例如:
要求
服務器支持 URL 重寫:具有 mod_rewrite 的 Apache、IIS 7.0+ 支持永久鏈接或 nginx。
對 wp-content/cache 目錄的讀寫訪問權限。
PHP 解譯器版本 >= 5.3。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
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
Server supports URL rewriting: Apache with mod_rewrite, IIS 7.0+ permalink support or nginx.
Read/Write access to wp-content/cache directory.
PHP interpreter version >= 5.3.
