[WordPress] 外掛分享: Auto Update Cache

首頁外掛目錄 › Auto Update Cache
WordPress 外掛 Auto Update Cache 的封面圖片
10+
安裝啟用
尚無評分
545 天前
最後更新
問題解決
WordPress 4.0+ v1.1 上架:2018-05-29

內容簡介

您修改了CSS/JS檔案,但網站上卻沒有顯示出來?這個外掛將會幫得上忙。

Auto Update Cache 可讓您自動或手動一鍵更新所有CSS和JS檔案的版本。顯示最新的更改給使用者/觀眾。

它是怎樣運作的?

預設情況下,WordPress會在URL中使用查詢參數 \”ver\” 來載入資產(例如,style.css?ver=4.9.6)。這允許瀏覽器將這些檔案快取,直到WordPress核心升級到較新的版本為止。

為了防止CSS和JS檔案被快取,此外掛在所有使用wp_enqueue_style 和 wp_enqueue_script 函數載入的連結中添加了查詢參數 \”time\” ,並提供了美觀易用的控制面板(例如,style.css?ver=4.9.6&time=1526905286)。

外掛標籤

開發者團隊

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

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

原文外掛簡介

Made CSS/JS file changes but not showing on website? this plugin will help.
Auto Update Cache allows you to update the version of all CSS and JS files automatically or manually in one click. Show latest changes to the users/viewers.
How it works?
By default, WordPress loads assets using query param \”ver\” in the URL (e.g., style.css?ver=4.9.6). It allows browsers to cache this files until the WordPress core will not be upgraded to a newer version.
To prevent caching of CSS and JS files, this plugin adds query param \”time\” with beautiful easy to use dashboard panel (e.g., style.css?ver=4.9.6&time=1526905286) to all links, loaded using wp_enqueue_style and wp_enqueue_script functions.

文章
Filter
Apply Filters
Mastodon