
內容簡介
您修改了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)。
外掛標籤
開發者團隊
原文外掛簡介
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.
