I have a
hook_boot() module that detects certain circumstances and changes the theme using
$custom_theme to a specific theme. All works good, however if Drupal has a cache of the page that page will be served regardless of the fact it is not the correct theme.
Is there anyway to force drupal not to use and caches for that specific theme? Or is there a way to force drupal to keep two caches? One for each theme?
I am using Drupal 6 btw.