Change Stats Refresh rate

Moderator: crythias

Locked
ChrisMachnicki
Znuny newbie
Posts: 40
Joined: 17 Jul 2013, 11:09
Znuny Version: 3.1.6
Real Name: Chris
Company: The Hut Group

Change Stats Refresh rate

Post by ChrisMachnicki »

Hi,
I am trying to refresh the 7, 14 and 1 month stats which appear on the right more frequent than currently (30 mins I think). I have found 1 other thread from a few years ago which advises to change the setting in the sysconfig - Frontend::Agent::Dashboard::DashboardBackend###0250-TicketStats.
I couldn't find anything for 14day and 1 month though.
I have lowered this to 1 (minute) but it does not seem to have any effect as new tickets in that users queue are not increasing the graph.

Any help appreciated.

Thanks

Chris
OTRS 3.3.8 & KIX4OTRS 6.06 in both test and live. MySQL 5.1.52 on Red Hat Enterprise Linux Server release 6.0
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Change Stats Refresh rate

Post by crythias »

1 minute? Vs thousands of tickets?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
ChrisMachnicki
Znuny newbie
Posts: 40
Joined: 17 Jul 2013, 11:09
Znuny Version: 3.1.6
Real Name: Chris
Company: The Hut Group

Re: Change Stats Refresh rate

Post by ChrisMachnicki »

reduced to 1 minute for testing because there's only a handful of test tickets. I would look to increasing to 5 - 10 once I roll out.
OTRS 3.3.8 & KIX4OTRS 6.06 in both test and live. MySQL 5.1.52 on Red Hat Enterprise Linux Server release 6.0
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Change Stats Refresh rate

Post by crythias »

where did you get 14 days or 1 month?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Change Stats Refresh rate

Post by crythias »

TTL by default:

Kernel/Output/HTML/DashboardTicketStatsGeneric.pm

Code: Select all

 my $CountCreated = $Self->{TicketObject}->TicketSearch(

            # cache search result 30 min
            CacheTTL => 60 * 30,
Changing this is up to you, but won't survive updates. In theory, this appears to be a "bug" in the sense that it doesn't obey the Config.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
ChrisMachnicki
Znuny newbie
Posts: 40
Joined: 17 Jul 2013, 11:09
Znuny Version: 3.1.6
Real Name: Chris
Company: The Hut Group

Re: Change Stats Refresh rate

Post by ChrisMachnicki »

Sorry hadn't noticed your reply. I didn't find 14 dy or 1 month in the config so guessed it wasn't available to change (although odd you can do one but not the others)
I think it's only a matter of time before it an upgrade was done and this was forgotten, maybe causing more confusion. Will change for testing but let it revert back to 30 for live.

Thanks as always!
OTRS 3.3.8 & KIX4OTRS 6.06 in both test and live. MySQL 5.1.52 on Red Hat Enterprise Linux Server release 6.0
Locked