关于老夫

    九十九度九十九度 [ BinaryJP.com ]
    众里寻她千百度,蓦然回首,所以减一度。

    2006年创建于百度空间,本意是借几K空间,随想随写,记录生活的点滴,待古稀之年儿孙满堂,坐轮椅乘凉于树下,回首过往,不禁嗟叹:老夫此生足矣!后因百度诸多限制,心中所感不得尽数而发,自建小站于他处,仍叫九十九度。

联系老夫

扫一扫

    手机访问

为WPtouch设置cache插件

今天又把WP super cache撞上了,并且处理了七牛,以后就是以前的样子。安装完WP super cache后,醒目的蚊子提示WPtouch需要配置,WP super cache这点做的不太好,现在WP有这么多的用户,他的说明文字还是有大量的英文,估计是觉得中国人不会在一个免费的平台上买收费的插件。

原文是这样的:

Caching software is used to improve the performance of your website. Unless the caching software has been specifically developed for use with mobile devices, it may override WPtouch Pro and give the appearance that your mobile theme is not functioning. You may see:

  • Cached posts and pages using your desktop theme on mobile devices, and/or
  • Cached posts and pages using your mobile theme on desktop devices.
  • Inconsistency of theme when your site is refreshed.

 

Fortunately, most caching plugins and services may be optimized for mobile use by disabling caching when mobile devices are detected.

BraveNewCode’s Infinity Cache extension may be used in conjunction with other caching plugins or may be used as a replacement for traditional caching plugins. When using a separate caching plugin, disable the setting to “Create cache for desktop users” in Infinity Cache. Be sure to follow these setup guidelines for best performance of your caching plugin.


WP Super Cache 

The native support for the free version of WPtouch found in WP Super Cache (under the “Plugins” tab) must be disabled to prevent conflicts in WPtouch Pro.

  1. In the Advanced tab of the WP Super Cache settings select “Mobile Device Support”* and click “Update Status”.
  2. Still in the Advanced tab, scroll down to the “Rejected User Agents” area. Paste the entire list of mobile user agents found below and click “Save UA Strings”.
  3. If you have added support for additional mobile devices in WPtouch Pro’s Compatibility > Custom User Agents field, you must also include those user agents in the “Rejected User Agents” area in WP Super Cache.
  4. In the “Contents” tab, click “Delete Expired” and “Delete Cached” to delete pages that were likely cached before adding the new list of rejected user agents.
  5. Ensure that WP Super Cache is selected in the plugins list in the Core Settings > Compatibility > WordPress Plugins section of the WPtouch Pro admin panel. (Pro only, enabled by default in WPtouch (free))
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
iPhone
iPod
Android
BB10
BlackBerry
webOS
IEMobile/7.0
IEMobile/9.0
IEMobile/10.0
MSIE 10.0
iPad
PlayBook
Xoom
P160U
SCH-I800
Nexus 7
Touch

 

原文还有很多,我只摘出和WP super cache有关的部分,如果想要查看其他cache插件,请移步到Configuring cache plugins for WPtouch去查看全文。

 

这段话的大意是这样的:

缓存软件可以用来提高网站性能的。除非缓存软件专门针对于移动设备开发,否者它的设置会覆盖WPtouch Pro的设置,导致手机主题不能正常显示。可能会出现一下情况:

缓存的文章和页面在移动设备上显示桌面主题,或者

缓存 的文章和页面在桌面设备上显示移动主题。

当网站刷新时就会出现不一致的主题

 

幸运的是,大多数高速缓存插件和服务可以通过禁用缓存来优化移动设备的移动设备的使用。

 

WP super cache配置如下:

在WP Super Cache中有提供了对WPtouch免费版本支持(“插件”选项卡下),必须关闭以防止在WPtouch Pro冲突。

 

1、在WP Super Cache设置中打开“高级”设置页,勾选“Mobile Device Support(这儿就是英文,没有翻译,而且以前的版本也都是)”,并且点击更新。

2、还是在“高级”页面,向下滚动找到“已拒绝的用户代理(User Agents)”,在下面的框里添加表格里的用户代理,然后点击保存。

3、如果你使用了其他的移动设备,需要手动添加到上面的位置,然后保存。

4、在“内容”标签页,点击删除“删除过期的文件”和“删除缓存”

5、确保在 WPtouch Pro管理面板中核心设置-兼容性-Wordpress插件中勾选了WP Super Cache。

 

原创文章,转载请注明: 转载自九十九度

本文链接地址: 为WPtouch设置cache插件


我来拍砖

(以便回访)