[wordpress插件] Cache-Control缓存控制

wordpress 插件 文章 2020-03-15 10:20 539 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Good caching policies is one of performance’s best friends, and it can be your new best friend too.

好的缓存策略是性能最好的朋友之一,它也可以成为您的新朋友。

Get friendly with intermediary and browser caches by taking control over your WordPress powered website’s HTTP Cache-Control headers.

通过控制基于WordPress的网站的HTTP Cache-Control 标头,可以与中介和浏览器缓存保持友好。

This is not a caching plugin in itself, but will enable you to leverage existing standard compliant caching systems better.

这本身不是缓存插件,但是使您能够更好地利用现有的符合标准的缓存系统。

You can set different policies for different kinds of pages to suite your website’s needs.

您可以为不同类型的页面设置不同的策略,以适应您网站的需求。

The Cache-Control for WordPress plugin allows you to set different policies for shared/intermediary and private caches.

WordPress的Cache-Control插件允许您为共享/中间和私有缓存设置不同的策略。

The plugin sets some sensible defaults for a medium traffic blog that publishes an update or two per week.

该插件为中等流量博客设置了一些合理的默认值,该博客每周发布一次或两次更新。

You can safely set long Cache-Control times as the max-age values is lowered automatically before a scheduled post is about to be published.

您可以安全地设置长时间的 Cache-Control 时间,因为在计划的帖子即将发布之前, max-age 值会自动降低。

Private pages (logged in users, the admin interface, etc.) will not be cached.

私有页面(已登录的用户,管理界面等)将不会被缓存。

The plugin has extensive documentation.

该插件具有广泛的文档

安装步骤

    1. Upload the plugin files to the /wp-content/plugins/cache-control directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / cache-control 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress
    4. 通过WordPress中的“插件”屏幕激活插件

    5. Use the Settings->Cache-Control screen to configure the plugin
    6. 使用“设置”->“缓存控制”屏幕来配置插件

    Optionally, also setup mod_cache in Apache or some kind of reverse

    (可选)还可以在Apache中设置 mod_cache 或进行某种反向设置

    proxy like Varnish or Nginx to improve your WordPress site's loading performance.

    varnish或Nginx之类的代理来提高WordPress网站的加载性能。

下载地址
https://downloads.wordpress.org/plugin/cache-control.2.2.5.zip
-EOF-

AI助手支持GPT4.0