One of the simplest (and most common?) use cases for theme switchers is that described in #2179647: Intermittent theme switching error when normal cache is enabled. On the project page it says

unlike other theme switching modules, ThemeKey should play well with internal and external page caches, like Boost or Varnish, even for anonymous users

which slightly contradicts what is said in the issue?

Comments

mkalkbrenner’s picture

Title: Not quite as compatible with page cache as the project page suggests? » Document page caching strategies for mobile devices
Version: 6.x-4.1 » 7.x-3.x-dev

The problem is that drupal core lacks the possibility of device specific caching. For a lot of other use-cases ThemeKey plays very well with page caching - in opposite to different theme switching solutions. For example ThemeKey triggers page cache invalidations on for time-based rules. Therefore the statement is valid.

To solve page caching for mobile devices you need a sub-domain concept or a different page caching implementation.
You can also use a highly configurable external cache solution like a combination of pound and varnish to provide device specific caching. ThemeKey supports all these approaches but could not provide that as simple module functionality.

Some of the different strategies have been discussed in the issue queue in the past.

A valid Task is to document some approaches. But everyone who promised to deliver such pieces of documentation missed that part after he implemented it successfully on his systems.

Anyone who wants to give something back by taking that task?

mkalkbrenner’s picture

Status: Active » Postponed