Quote from: kudykam at Sep 02, 2013, 06:15 AMWell I dont need autodetection of mobile browser. I need mobile website on domain www.m.site.com or www.site.com/mobile/
Perhaps you have this part covered but I'll post in case it is helpful.
I suspect you will be most productive using the same MODX install for both sites (ex: www.site.com and www.m.site.com) so that you don't have to recreate resources or access them in a convoluted way. Any reason not after reading below?
You also indicated some interest in a /mobile path (ex: www.site.com/mobile/category/product123). If that is still of interest is it instead of or with a separate mobile domain name? Would a URL parameter work just as well (ex: www.site.com/mobile/category/product123?version=mobile)
Mobile detection could allow you to identify a mobile device and send it to the right domain and/or to adjust formatting. That may be unnecessary for you- ok moving on for now.
A little bit of responsive design or extensive responsive design in a few key places might make sense. For example, the /category/product123 page could have extensive responsive design that works for all products; while, the www.site.com/mobile and/or the www.m.site.com/ pages could be completely separate.
With separate domains under the same MODX, you can logically choose which template is used to display any resource. How best to accomplish this probably depends on your current codebase. Is your content in MODX resources? (alternatives include: custom database tables, text files, web services). In any case, is your content itself reasonably-free of any rendering (explicit CSS, HTML etc) such that both the destktop and mobile-app versions can easily use the exact same content?
How many site-templates?
How separated in your codebase are: content accessing/aggregating calls, chuck-templates, CSS, Javascript (in whichever form)?
You mentioned the importance of caching for your situation- how caching is working for you today may change or not. It would help to know if you just enabled caching, recoded to cache better, or tweeked MODX internals. Are you more concerned about the amount of disk space caching uses, making sure content changes trigger updates to all cached pages affected, or something else?
Based on my understanding of your prior postings (without answers to above questions yet):
Responsive design for product pages could give you simplified caching with home pages completely different based on starting URL and/or mobile device identification (as you choose). Other pages between home and end product pages (plus other leaf pages like checkout etc.) can be better evaluated once you have those first two working.
Hopefully this helps you or someone else- though I understand if it is not what you wanted.