Index: clickpath.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/clickpath/clickpath.module,v
retrieving revision 1.1.2.1.2.4
diff -u -p -r1.1.2.1.2.4 clickpath.module
--- clickpath.module	14 Mar 2010 01:56:49 -0000	1.1.2.1.2.4
+++ clickpath.module	29 Mar 2010 05:30:00 -0000
@@ -97,6 +97,7 @@ function clickpath_block($op = 'list', $
   global $user;
   if ($op == 'list') {
     $block[0]['info'] = t('Recently visited pages');
+    $block[0]['cache'] = BLOCK_NO_CACHE;
     return $block;
   }
   else if ($op == 'view') {
@@ -187,7 +188,8 @@ function clickpath_save_path($path) {
     $clickpath = clickpath_get_paths();
     if (empty($clickpath[$path])) {
       $clickpath[$path] = $title;
-      while (count($clickpath) > variable_get('clickpath_count', 5)) {
+      $count = variable_get('clickpath_count', 5);
+      while (count($clickpath) > $count) {
         array_shift($clickpath);
       }
     }
