百度 | 神马 | 搜狗 | 技术文档 | 学习资料分享 - 记录帝国CMS及运维技术的点点滴滴
你的位置:首页 > 实用IT技术 » 正文

【Wordpress相关】关于WP Super Cache与WPtouch冲突问题的完美解决

发布时间:2020-09-17

作品分类:Wordpress相关  网站  缓存  用户  冲突  完美  解决  Super  WP

早上因为网站打不开,加载慢的问题,反馈给西部数码,但是后来发现是我自己网站Wordpress程序插件下的太多了,同时没有设置缓存功能,然后去下载了很多Wordpress网站都用到的一个缓存神器,WP Super Cache,但是后来发现一个问题,给网站所有页面设置好伪静态以后,发现后台有个大大的提示,WPtouch不再加载什么的,用手机打开网站,果然WP没有工作了,WP Super Cache与WPtouch两个插件有冲突,然后根据网站的提示,进入页面 Configuring cache plugins for WPtouch 根据提示逐步修改,找到解决方法。

 

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,打开WP Super Cache设置页面里面的”高级”标签,勾选“Mobile device support”,点击“更新”保存。

2,把下面这些设备粘贴到 “已拒绝的用户代理(User Agent)”对话框里,点击“保存用户代理(UA)字段”。

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

3,这个是WPtouch Pro用户的,我用的是 free 版本,略过。

4,在“内容”标签中,点击“删除已过期文件”和“删除缓存”。

5,这个也是 Pro用户的,略过。

然后再用手机端打开,可以看到 WPtouch 的漂亮界面了。

Top