[rt-users] System-wide Default Refresh Rate

Ian Norton i.d.norton at gmail.com
Sun Jul 15 10:15:37 EDT 2007


Hi Mathew,

> Sadly, this won't work for the 3.6 branch autohandler.  :(  HomeRefreshPeriod
> isn't found anywhere in it.  Heck, I can't seem to find it anywhere using grep.
>  I know it's there somewhere though.

You did apply the patch, didn't you?  By the looks of it, the patch
fails against the 3.6.4 source I just untarred to check it against.
Here's an updated version:

<snip>
--- html/autohandler    2007-04-24 18:21:42.000000000 +0100
+++ html/autohandler    2007-07-15 15:05:40.000000000 +0100
@@ -196,6 +196,8 @@
                         if ( defined $new_user_info->{$attribute} );
                 }
                 $session{'CurrentUser'}->Load($user);
+                $session{'home_refresh_interval'} = $RT::HomeRefreshPeriod;
+                $session{'tickets_refresh_interval'} =
$RT::TicketsRefreshPeriod;
             }
             else {

@@ -243,6 +245,8 @@
 if ( !$session{'CurrentUser'} && defined $user && defined $pass ) {
     $session{'CurrentUser'} = RT::CurrentUser->new();
     $session{'CurrentUser'}->Load($user);
+    $session{'home_refresh_interval'} = $RT::HomeRefreshPeriod;
+    $session{'tickets_refresh_interval'} = $RT::TicketsRefreshPeriod;

     unless ( $session{'CurrentUser'}->id
         && $session{'CurrentUser'}->IsPassword($pass) )
</snip>

The HomeRefreshPeriod variable won't appear in the source until the
patch is applied.

Regards, Ian.



More information about the rt-users mailing list