Index: country_code.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/country_code/country_code.module,v
retrieving revision 1.93
diff -u -p -r1.93 country_code.module
--- country_code.module	12 Nov 2008 14:41:59 -0000	1.93
+++ country_code.module	19 Nov 2008 18:34:12 -0000
@@ -208,6 +208,16 @@ function country_code_boot() {
     require_once($path);
   }
   _country_code_init_code();
+  
+  // add the language variable into the REQUEST_URI.  Drupal page caching is
+  // keyed off of the REQUEST_URI, so this will ensure that pages get cached
+  // and recalled from cache with the appropriate country_code.
+  $parts = parse_url(request_uri());
+  $new_uri = $parts['path'] .'?'
+           . (empty($parts['query']) ? '' : $parts['query'] . '&')
+           . 'country_code_cache='. country_code();
+  $_SERVER['REQUEST_URI'] = $new_uri;  
+  
 }
 
 /**
