[wordpress插件] Auto Update Cache自动更新缓存

wordpress 插件 文章 2020-02-25 00:20 679 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Made CSS/JS file changes but not showing on website?

CSS / JS文件已更改,但未在网站上显示?

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.

“自动更新缓存”使您可以自动或一键式更新所有CSS和JS文件的版本。

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).

默认情况下,WordPress使用URL中的查询参数\“ ver \”加载资产(例如,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.

它允许浏览器缓存该文件,直到WordPress核心不会升级到较新版本为止。

To prevent caching of CSS and JS files, this plugin adds query param \”time\” with beautiful easy to use dashboard panel (eg, style.css?ver=4.9.6&time=1526905286) to all links, loaded using

为防止缓存CSS和JS文件,该插件将查询参数\“ time \”与易于使用的精美仪表板面板(例如,style.css?ver = 4.9.6&time = 1526905286)添加到所有链接,并使用

wp_enqueue_style and wp_enqueue_script functions.

wp_enqueue_style和wp_enqueue_script函数。

安装步骤

From WordPress dashboard

从WordPress仪表板中

    1. Visit \”Plugins > Add New\”.
    2. 访问\“插件>添加新\”。

    3. Search for \”Auto Update Cache\”.
    4. 搜索“自动更新缓存”。

    5. Install and activate Auto Update Cache plugin.
    6. 安装并激活自动更新缓存插件。

    From WordPress.org site

    来自WordPress.org网站

      1. Download Auto Update Cache plugin.
      2. 下载自动更新缓存插件。

      3. Upload the \”auto-update-cache\” directory to your \”/wp-content/plugins/\” directory.
      4. 将\“ auto-update-cache \”目录上传到\“ / wp-content / plugins / \”目录。

      5. Activate Auto Update Cache on your Plugins page.
      6. 在“插件”页面上激活自动更新缓存。

下载地址
https://downloads.wordpress.org/plugin/auto-update-cache.1.0.zip
-EOF-

AI助手支持GPT4.0