[rt-users] System-wide Default Refresh Rate

Mathew Snyder theillien at yahoo.com
Tue Jul 17 23:49:49 EDT 2007


Ian Norton wrote:
> 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.
> 

I added the lines listed, logged out and then logged in again to make sure the
session was reset.  Still no system-wide change.

Mathew
Keep up with me and what I'm up to: http://theillien.blogspot.com



More information about the rt-users mailing list