我们正在使用 W3 Total Cache(页面缓存 - 磁盘:基本)。这会导致为桌面和移动设备生成相同的缓存。
我们需要为我们尝试使用用户代理组的移动和桌面单独缓存,但似乎我们没有正确配置它或者它没有按预期工作。
但两者生成的缓存仍然相同,以下是桌面和移动设备的调试信息:
桌面:
Performance optimized by W3 Total Cache. Learn more: https://www.w3-edge.com/products/
Page Caching using disk
Page cache debug info:
Engine: disk
Cache key: xxxxxxxxxxxxxxxxxxxxxxxxx
Creation Time: 1478697928.000s
Header info:
Set-Cookie: _wp_session=xxxxxxxxxxxxxx; expires=Wed, 09-Nov-2016 13:55:27 GMT; Max-Age=1800; path=/
Content-Type: text/html; charset=UTF-8
X-Powered-By: W3 Total Cache/0.9.5.1
Link: <http://my-site.com/>; rel=shortlink
Served from: my-site.com @ 2016-11-09 13:25:28 by W3 Total Cache
苹果手机:
<!-- Performance optimized by W3 Total Cache. Learn more: https://www.w3-edge.com/products/
Page Caching using disk
Page cache debug info:
Engine: disk
Cache key: 50e7360d67b0ae9ff4a13ced7367e6c5
Creation Time: 1478697928.000s
Header info:
Set-Cookie: _wp_session=xxxxxxxxxxx; expires=Wed, 09-Nov-2016 13:55:27 GMT; Max-Age=1800; path=/
Content-Type: text/html; charset=UTF-8
X-Powered-By: W3 Total Cache/0.9.5.1
Link: <http://my-site.com:81/>; rel=shortlink
Served from: my-site.com @ 2016-11-09 13:25:28 by W3 Total Cache -->
两个缓存的生成日期时间相同,这意味着移动设备没有任何单独的缓存。
如果我没有正确配置它或缺少任何其他部分,有人可以帮忙吗?