[WordPress] 外掛分享: reBusted!

首頁外掛目錄 › reBusted!
6,000+
安裝啟用
★★★★★
5/5 分(11 則評價)
524 天前
最後更新
問題解決
WordPress 3.4+ v1.2 上架:2018-02-14

內容簡介

這個外掛可以免去你問「你有清空快取嗎?」的問題。

這是根據原本由 Paul Clark 開發的外掛更新,以符合今天的 WordPress 和 PHP。

功能

在線上網站上安全使用。
只有在文件修改時才會刷新瀏覽器快取。
解決內容傳遞網路(CDN)問題,無需清除 CDN 快取。
支援 Multisite。
「隨開即用」—— 無須任何設置。

需求

需要腳本使用以下任何一個功能來載入。幾乎所有檔案都符合這些需求。唯一不符合這些需求的情況是 URL 是硬編碼的,這應該不會發生,因為這會因其他原因而破壞網站。

wp_enqueue_style
wp_enqueue_script
get_stylesheet_uri

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「reBusted!」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Saves you from asking “have you emptied your cache?”.
Forked and updated for todays WordPress and PHP from the original plugin by Paul Clark.
Features

Safe to leave running on live sites.
Only refreshes browser cache for a file if it has been modified.
Resolves Content Delivery Network (CDN) issues. No need to purge CDN cache.
Multisite compatible.
“Just works” – no configuration necessary.

Requirements
Requires scripts use any of the below functions to load. Almost all files meet these requirements. The only case it doesn’t account for is when URLs are hard-coded. This shouldn’t ever be done, since it can break sites for other reasons.

wp_enqueue_style
wp_enqueue_script
get_stylesheet_uri

延伸相關外掛

文章
Filter
Apply Filters
Mastodon