[Plugin: W3 Total Cache] MobilePress compatibility
-
I would wonder if you could check on making Total Cache compatible with MobilePress.
https://www.ads-software.com/extend/plugins/mobilepress/
-
To host your own mobile theme, you need a plugin to switch themes based on user agent, for this I have no specific recommendation. I do believe there are some themes/plugin combinations that do the theme switch for you and for them to work, mobile users must be “rejected” from minify, cdn (unless using origin pull) and page caching.
I’m a writer not a developer so I need a simple solution. That’s the whole point of wordpress right? It’s easy to install, maintain and install plugins. Once you start talking about minify and user agents and theme switching…. i’m lost. Especially since the new mobile plugins don’t expose a mobile theme to choose from (WpTouch and MobilePress).
It would be nice if you had just a checkbox on your plugin that would disable the entire plugin for mobile clients or at a minimum page caching. Mobile is probably just .5% of my traffic so that would be good enough for me ??
I’ve moved back to WP Super Cache and I’m back up and running for now. I do like your plugin for the database caching and other options but until I see something in your release notes that has a simple solution for Mobile themes I’ll just be watching from the sidelines.
Right now if you use a service like mofuse, the plugin is already designed for that. There are plans to build in a mobile theme switcher, but everyone fails to see how many assumptions are required to make “simple” things. Anyway, for now, if you have a theme switcher, a mobile optimized theme etc you can add mobile user agents to the rejected field for any tabs that you’re using, which until today has been fine for everyone else.
I succeeded in getting this plug-in to work with WordPress Mobile Pack.
As Frederick Townes suggested, under Page Cache Settings, I added the list of Mobile user agents to the list of rejected user agents, then deleted everything withing the mobile user agent field.I left the Redirect mobile users to field blank.
So far so good, it’s working just fine.
Great.
I just swapped back to W3 Total Cache, and also changed to WP Touch (for mobile users). I have done as Strictly suggested, too:
1) copied mobile user list from the existing field, provided on install
2) pasted into rejected user agents
3) deleted the mobile user list
4) saved.I can confirm it’s compatible.
3) deleted the mobile user list
This step is unnecessary, but I’m glad you’re all set now.
So I have done whats been listed here and it works fine. There is one thing I noticed however. When I add the mobile list and save, if you view the page in IE8 (possibly other versions as well, I haven’t tested) it says: Page Caching using disk (enhanced) (user agent is rejected)
If I remove them its fine again. I checked my user agent and it displays as: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
I tried removing IEMobile from the list and that didn’t help, not sure which of the 101 agents is causing it not to display a cached page to IE8, but if anyone knows that would be great!
Page Caching using disk (enhanced) (user agent is rejected)
I’m not really sure what user agent you’re trying to match? In general that list of devices in the mobile list in the plugin is exhaustive. If you’re specifying something that’s not listed there, it’s not confirmed supported.
@ fredericktownes: Nope, looks like you didn’t fully understand what I was saying. When I add the mobile list to rejected clients (so as not to serve a cached page to mobile devices) Internet explorer 8 also does not receive a cached page, but Opera, Firefox and Chrome all do like they should. One of the mobile agents is also causing IE 8 to be considered a mobile client and not receive a cached page. I’m trying to figure out which one to remove so that IE users still get a cached page.
Thanks.
What I’m trying to indicate is that you *must* have specified a user agent similar to MSIE, which is the root of the matter.
If you re-purpose the user agent list provided in the plugin this case does not exist; this has already been tested and proven.
@ fredericktownes: I’m simply copying and pasting the user agents from the mobile detection list. I haven’t added any manually at all. If I remove those and save, it doesn’t show the user rejected, but if I add them it does. So its one of the stock 101 from the mobile detection list.
This is the stock list:
bot
ia_archive
slurp
crawl
spiderWith that it works fine (obviously my mobile version doesn’t work because I haven’t added the mobile ones)
and here are the ones I added from your Mobile user agents list:
2.0 MMP
240×320
ASUS
AU-MIC
Alcatel
Amoi
Android
Audiovox
AvantGo
BenQ
Bird
BlackBerry
Blazer
CDM
Cellphone
DDIPOCKET
Danger
DoCoMo
Elaine/3.0
Ericsson
EudoraWeb
Fly
HP.iPAQ
Haier
Huawei
IEMobile
J-PHONE
KDDI
KONKA
KWC
KYOCERA/WX310K
LG
LG/U990
Lenovo
MIDP-2.0
MMEF20
MOT-V
MobilePhone
Motorola
NEWGEN
NetFront
Newt
Nintendo Wii
Nitro
Nokia
Novarra
O2
Opera Mini
Opera.Mobi
PANTECH
PDXGW
PG
PPC
PT
Palm
Panasonic
Philips
Playstation Portable
ProxiNet
Proxinet
Qtek
SCH
SEC
SGH
SHARP-TQ-GX10
SIE
SPH
Sagem
Samsung
Sanyo
Sendo
Sharp
Small
Smartphone
SoftBank
SonyEricsson
Symbian
Symbian OS
SymbianOS
TS21i-10
Toshiba
Treo
UP.Browser
UP.Link
UTS
Vertu
WILLCOME
WinWAP
Windows CE
Windows.CE
Xda
ZTE
dopod
hiptop
htc
i-mobile
iPhone
iPod
nokia
portalmmm
vodafoneOnce I add this IE8 says user agent rejected and serves up a non cached page (works on all the other major browsers, haven’t tested below IE8 however). Let me know if I’m somehow wrong, but like I said, I didn’t add anything to that list, its a direct copy paste of your default mobile agents.
Thanks.
I am still not able to duplicate this. Can you try clearing cookies in your browser and make sure you’re not logged in to WP Admin?
I tried that just now and still no luck. Feel free to check for yourself: https://farmvillefanatic.com/
Let me know if it shows user agent rejected for you on IE8. My rejected list is exactly what I posted above.
Thanks.
For anyone interested, today I narrowed it down doing the list half at a time until I found it. The agent was SIE, I don’t know what this one is, but it causes IE8 to send a non cached page, so I removed it and now all is well.
- The topic ‘[Plugin: W3 Total Cache] MobilePress compatibility’ is closed to new replies.