Title: Disable Version Caching &#8211; Khanakia
Author: mrkhanakia
Published: <strong>2019 年 3 月 29 日</strong>
Last modified: 2020 年 11 月 30 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/disable-version-caching/assets/icon-256x256.png?rev=2356170)

# Disable Version Caching – Khanakia

 由 [mrkhanakia](https://profiles.wordpress.org/mrkhanakia/) 開發

[下載](https://downloads.wordpress.org/plugin/disable-version-caching.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/disable-version-caching/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/disable-version-caching/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/disable-version-caching/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/disable-version-caching/#developers)

 [技術支援](https://wordpress.org/support/plugin/disable-version-caching/)

## 外掛說明

Are you a frontend developer? Do you want to clear browser cache for all users? 
Just activate this plugin and show your work!

Disable Version Caching allows you to update the assets version of all CSS and JS
files automatically or manually in one click.

Now you can show the latest changes on the site without asking the client to clear
the cache.

#### How it works?

Usually, WordPress loads assets using query param “ver” in the URL (e.g., style.
css?ver=4.9.6). It allows browsers to cache these files until the parameter will
not be updated.

To prevent caching of CSS and JS files, this plugin adds a unique number (e.g., 
1526903434) to the “ver” parameter (e.g., style.css?ver=4.9.6.1526903434) for all
links, loaded using wp_enqueue_style and wp_enqueue_script functions.

#### For developers

By default, this plugin updates all assets files every time a user loads a page 
and adds options in the admin panel (Settings -> Disable Version Caching) which 
allows you to configure updating of these files.

But you can also set the version of CSS and JS files programmatically.

Just insert this code in functions.php file of your theme and change the value of
assets_version when you need to update assets:

    ```
    disable_version_caching( array( 
        'assets_version' => '123' 
    ) );
    ```

## 安裝方式

#### From WordPress dashboard

 1. Visit “Plugins > Add New”.
 2. Search for “Disable Version Caching”.
 3. Install and activate Disable Version Caching plugin.

#### From WordPress.org site

 1. Download Disable Version Caching plugin.
 2. Upload the “disable-version-caching” directory to your “/wp-content/plugins/” directory.
 3. Activate Disable Version Caching on your Plugins page.

## 使用者評論

![](https://secure.gravatar.com/avatar/5fa0efe5362b86d305b794379159c3a3231d57844a0ca00716c0866ec7326205?
s=60&d=retro&r=g)

### 󠀁[We use it all of our websites!!!](https://wordpress.org/support/topic/we-use-it-all-of-our-websites/)󠁿

 [Erman Küplü](https://profiles.wordpress.org/ekuplu/) 2021 年 4 月 11 日

Great work thanks a lot! We use it all of our websites!!!

![](https://secure.gravatar.com/avatar/30dca87f806345f8d4dbb58a0909caf7f3601ecfd1f4919186b26f88a0069755?
s=60&d=retro&r=g)

### 󠀁[Great help](https://wordpress.org/support/topic/great-help-135/)󠁿

 [A. Jones](https://profiles.wordpress.org/nomadcoder/) 2019 年 4 月 10 日

Nice addition for sites that are in development!

![](https://secure.gravatar.com/avatar/672f19f899486f6a74f199fb3b2c8403c65ae6dcad34942e55abd5faedf8b478?
s=60&d=retro&r=g)

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-7513/)󠁿

 [mrkhanakia](https://profiles.wordpress.org/mrkhanakia/) 2019 年 3 月 29 日

This is a great plugin. Thanks

 [ 閱讀全部 3 則使用者評論 ](https://wordpress.org/support/plugin/disable-version-caching/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Disable Version Caching – Khanakia〉的開發相關工作。

參與者

 *   [ mrkhanakia ](https://profiles.wordpress.org/mrkhanakia/)

[將〈Disable Version Caching – Khanakia〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/disable-version-caching)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/disable-version-caching/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/disable-version-caching/)，或
透過 [RSS](https://plugins.trac.wordpress.org/log/disable-version-caching/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/disable-version-caching/)。

## 變更記錄

#### 1.0

 * First version of Disable Version Caching plugin.

## 中繼資料

 *  版本 **1.0.1**
 *  最後更新 **5 年前**
 *  啟用安裝數 **200+**
 *  WordPress 版本需求 ** 4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.5.18**
 *  語言
 * [English (US)](https://wordpress.org/plugins/disable-version-caching/)
 * 標籤:
 * [assets](https://tw.wordpress.org/plugins/tags/assets/)[browser cache](https://tw.wordpress.org/plugins/tags/browser-cache/)
   [clear](https://tw.wordpress.org/plugins/tags/clear/)[development](https://tw.wordpress.org/plugins/tags/development/)
   [Frontend](https://tw.wordpress.org/plugins/tags/frontend/)
 *  [進階檢視](https://tw.wordpress.org/plugins/disable-version-caching/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  3 個 5 星使用者評論     ](https://wordpress.org/support/plugin/disable-version-caching/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/disable-version-caching/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/disable-version-caching/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/disable-version-caching/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/disable-version-caching/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/disable-version-caching/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/disable-version-caching/reviews/)

## 參與者

 *   [ mrkhanakia ](https://profiles.wordpress.org/mrkhanakia/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/disable-version-caching/)