Index: flir.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/flir/flir.module,v
retrieving revision 1.2.2.1
diff -u -F^function -r1.2.2.1 flir.module
--- flir.module	9 Aug 2008 20:18:29 -0000	1.2.2.1
+++ flir.module	29 Sep 2008 00:56:53 -0000
@@ -178,6 +178,8 @@ function flir_admin_settings() {
 }
 
 function _flir_generate(){
+  global $user;
+  
 /*
 Facelift Image Replacement v1.1.1
 
@@ -243,9 +245,10 @@ function replace_unicode($m) {
   return chr(base_convert(substr($m[0], 1),16,10));
 }
 
-$text   = isset($argument['text'])?strip_tags($argument['text']):'unknown';
-$text    = preg_replace_callback('#\%u[a-f0-9]{4}#i', 'replace_unicode', $text);
-$cache   = get_cache_fn(md5($font.(print_r($FStyle,true).$text)));
+$text = isset($argument['text'])?strip_tags($argument['text']):'unknown';
+$text = preg_replace_callback('#\%u[a-f0-9]{4}#i', 'replace_unicode', $text);
+$roles = $user->uid != 0 ? implode(',', array_keys($user->roles)) : '';
+$cache = get_cache_fn(md5($font . $roles . request_uri() . print_r($FStyle,true).$text));
 
 $text = str_replace('{amp}', '&', $text);
 $text = html_entity_decode($text, ENT_QUOTES, 'utf-8');
@@ -352,4 +355,4 @@ function replace_unicode($m) {
   @cleanup_cache();
 
   exit();
-}
\ No newline at end of file
+}
