[WordPress] 外掛分享: Minify

首頁外掛目錄 › Minify
WordPress 外掛 Minify 的封面圖片
10+
安裝啟用
★★★☆☆
3.7/5 分(3 則評價)
4946 天前
最後更新
問題解決
WordPress 3.0+ v0.2 上架:2012-05-23

內容簡介

與我們在 eMusic 上使用的類似-這個軟體仍在實驗階段,不過可以先看看!

自動串接 wp_head() 和 wp_footer() 中輸出的 JS 和 CSS 檔案-從 Memcached (如果已安裝) 或資料庫中存儲/提供它們。在負載平衡環境中,生成平面文件可能很昂貴且難以分配。 Minify 利用 Memcached、站點選項/暫存器來完成一次工作,在您的群集中的所有服務器之間共享。文件名是動態生成的,以允許刷新像 Akamai 這樣的 CDN,這些 CDN 不總是按查詢字符串進行刷新。

新的 .htaccess 規則!
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]

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.2) 或搜尋安裝

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

延伸相關外掛

文章
Filter
Mastodon