Categories

有特色的模板

WordPress. 如何启用网站缓存

Tyler Warren March 9, 2017
Rating: 5.0/5. From 2 votes.
Please wait...

Hello! 本教程将向您展示如何安装和管理 WP Super Cache plugin to improve your website performance.

  1. Visit the 官方插件页面 并将其软件包下载到您的计算机上.

  2. Upload it to the Plugins -> Add new -> Upload section at your dashboard. 你可以参考我们的教程 如何安装一个插件到WordPress.

  3. 启用缓存,请转至 Settings -> WP Super Cache. 在Easy选项下打开缓存 tab, and hit the update status button.

    WordPress._How_to_enable_website_caching_1
  4. 然后点击测试 cache 按钮检查是否工作. WP Super Cache 将获取你的WordPress网站两次,并将比较两个页面的时间戳. 如果两个时间戳匹配,那么这意味着缓存现在正在您的站点上工作.

  5. To setup WP Super Cache 对于高级选项,请转到 Settings -> WP Super Cache and click on Advanced tab.

    WordPress._How_to_enable_website_caching_2
  6. Check the ‘Cache hits to this website for quick access’盒子并尝试使用 mod_rewrite to serve cache 使用选项的文件,如下所示. Then update 在相应按钮的帮助下显示状态.

  7. 向下滚动页面,您将看到 mod_rewrite 需要添加的规则. Click on ‘Update Mod_Rewrite Rules‘ button to update these rules. Once mod_rewrite 规则更新后,此部分将变为绿色.

  8. 要解析有关垃圾收集的通知,请在高级设置页面上向下滚动到 Expiry Time & 垃圾收集 节,并设置服务器上缓存文件的垃圾收集的时间和频率.

    WordPress._How_to_enable_website_caching_3
  9. 您也可以启用文件 compression by checking the ‘压缩页面,以便更快地为访问者提供服务‘ box.

  10. 大多数内容网站为每个页面请求提供大量静态文件. 这些文件是javascript、图像、样式表等. 不像你的WordPress帖子是由PHP动态生成的, 这些文件可以使用 内容传送网络(CDN). To setup CDN with WP Super Cache, click on the CDN tab 在“”旁边的方框里打勾。Enable CDN Support‘ option. 输入您的离线URL,这将是您的pullzone的URL. For example, http://cdn.example.com . 最后,勾选Skip http url以避免“混合内容”错误并保存更改. Now your website 现在可以上菜了吗 static content from a CDN.

    WordPress._How_to_enable_website_caching_4
  11. The preload mode in WP Super Cache 允许您创建super cache 静态文件为您的所有帖子和页面,并提供一个静态 website. Refresh preload cache 默认情况下,文件选项将设置为零,最小所需时间至少为30分钟. 预加载整个WordPress站点需要一些时间,并且在服务器上消耗大量资源. 你可以别管它 0 如果您不希望静态文件过期,除非手动刷新 cache.

    WordPress._How_to_enable_website_caching_5

以上就是所有内容,现在您对如何管理站点有了更多的了解 cache using the WP Super Cache plugin.

请随时查看下面的详细视频教程:

WordPress. 如何启用网站缓存

让我们仔细看看收藏的 高级WordPress主题 为你的项目选择最好的.

最佳Wordpress主题
这个条目被张贴了出来 WordPress教程 and tagged caching, plugin, WordPress, WP Super Cache. Bookmark the permalink.

Submit a ticket

如果您仍然无法找到关于您的问题的足够的教程,请使用以下链接向我们的技术支持团队提交请求. 我们将在接下来的24小时内为您提供我们的帮助和协助: Submit a ticket