[WordPress] 外掛分享: CC-Minify

首頁外掛目錄 › CC-Minify
WordPress 外掛 CC-Minify 的封面圖片
10+
安裝啟用
尚無評分
3411 天前
最後更新
問題解決
WordPress 4.6.1+ v1.0.0 上架:2016-11-13

內容簡介

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。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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

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.

延伸相關外掛

文章
Filter
Mastodon