WPTouch W3 Total Cache – must disable browser caching?
-
OK, I feel like I must be missing something obvious, but I’ve reached my frustration point. I’m bringing my blog back from a long hiatus, and to prepare for that I’m updating it with the latest and greatest. That includes upgrading to WP3.1.3, changing themes, replacing WP Super Cache with W3 Total Cache and installing WPTouch.
It has been going fairly smoothly, except I’m having an issue with WPTouch which I think is tied to W3 Total Cache, but I’m not positive. I’ve searched for threads on working with these two and I found https://nimopress.com/pressed/blog-building-how-to-configure-w3-total-cache-to-work-with-wptouch-for-wordpress/ as well.
I started off with a stock install of both, and things seemed to be OK. Testing from a Motorola Droid I’d see the WPTouch version of the site, and my desktop got the ‘normal’ version. But if I tried to use the On/Off toggle on the WPTouch page it’d just reload the page in the same version – and the toggle was the same. But if I follow a link the next page loads the ‘correct’ theme. So say I load the home page and get the WPTouch version, I hit the toggle and still see that. But then I follow a link to a post and see the ‘desktop’ version and the toggle is now ‘Off’.
So it looks like the request is making it to the server and being registered, but the browser is reloading the same page and only new pages are getting the change. But then those pages are ‘stuck’ on that theme. This does seem like a caching issue.
Based on what I found in past threads I added this list to the Rejected User Agents on the three W3 Total Cache pages:
acer\ s100
android
archos5
bada
blackberry9500
blackberry9530
blackberry9550
blackberry\ 9800
cupcake
docomo\ ht\-03a
dream
googlebot-mobile
htc\ hero
htc\ magic
htc_dream
htc_magic
incognito
ipad
iphone
ipod
kindle
lg\-gw620
liquid\ build
maemo
mot\-mb200
mot\-mb300
nexus\ one
opera\ mini
samsung\-s8000
series60.*webkit
series60/5\.0
sonyericssone10
sonyericssonu20
sonyericssonx10
t\-mobile\ mytouch\ 3g
t\-mobile\ opal
tattoo
webmate
webos
240×320
2\.0\ mmp
\bppc\b
alcatel
amoi
asus
au\-mic
audiovox
avantgo
benq
bird
blackberry
blazer
cdm
cellphone
danger
ddipocket
docomo
dopod
elaine/3\.0
ericsson
eudoraweb
fly
haier
hiptop
hp\.ipaq
htc
huawei
i\-mobile
iemobile
j\-phone
kddi
konka
kwc
kyocera/wx310k
lenovo
lg
lg/u990
lge\ vx
midp
midp\-2\.0
mmef20
mmp
mobilephone
mot\-v
motorola
netfront
newgen
newt
nintendo\ ds
nintendo\ wii
nitro
nokia
novarra
o2
openweb
opera\ mobi
opera\.mobi
palm
panasonic
pantech
pdxgw
pg
philips
phone
playstation\ portable
portalmmm
proxinet
psp
qtek
sagem
samsung
sanyo
sch
sec
sendo
sgh
sharp
sharp\-tq\-gx10
small
smartphone
softbank
sonyericsson
sph
symbian
symbian\ os
symbianos
toshiba
treo
ts21i\-10
up\.browser
up\.link
uts
vertu
vodafone
wap
willcome
windows\ ce
windows\.ce
winwap
xda
zteI deployed and cleared all of the cache, but it doesn’t seem to have made any difference. If I deactivate W3 Total Cache, WPTouch seems to behave correctly. Doing more debugging I determined that the issue is browser caching. If I disable browser caching in W3 Total Cache then, even with it enabled in general, it seems that WPTouch works as expected.
Before I spent too much time possibly re-inventing the wheel, I wanted to see if anyone else has W3 Total Cache working with WPTouch *with* browser caching enabled. If so, did you have to do anything special?
The site is https://www.gizmolovers.com/ Ignore the style, I’m still working on re-customizing the theme since I just switched from an ancient custom template I’d been using. So it is pretty much stock ‘twentyten’ right now.
Right now it is running *with* the Rejected User Agents list and with browser caching disabled. (I plan to test it without the list too, but I need a break.)
Thanks.
- The topic ‘WPTouch W3 Total Cache – must disable browser caching?’ is closed to new replies.