Skip to content

Commit 0edcfc1

Browse files
committed
Decrease cached time for PP graph
1 parent abaf025 commit 0edcfc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stats/pp_stage_goal.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ function _get_pages_posted_data($start_timestamp)
3535

3636
// Get the total pages for projects that have posted in current month
3737
$start_timestamp = mktime(0, 0, 0, (int)date('m'), 1, (int)date('Y'));
38-
// cache pages posted data for 1 day
39-
$pp_pages_total = query_graph_cache("_get_pages_posted_data", [$start_timestamp], 60 * 60 * 24);
38+
// cache pages posted data for 1 hour
39+
$pp_pages_total = query_graph_cache("_get_pages_posted_data", [$start_timestamp], 60 * 60);
4040

4141
// calculate the goal percent as long as $pp_page_goal isn't zero
4242
if ($pp_page_goal != 0) {

0 commit comments

Comments
 (0)