Skip to content

Commit

Permalink
fix: set cache-control-max-age on issues count badges
Browse files Browse the repository at this point in the history
  • Loading branch information
spmeesseman committed Aug 3, 2019
1 parent 93a913f commit ee19e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/issues_count.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function bugcount_base(\Slim\Http\Request $p_request, \Slim\Http\Response $p_res
}

$t_badge_text = plugin_lang_get("api_badge_text_issues_$p_type") . "%20" . plugin_lang_get("api_badge_text_issues");
$t_img_url = "https://img.shields.io/badge/" . $t_badge_text . "-" . $t_bug_count_filtered . "-" . $t_badge_color . ".svg?logo=codeigniter&logoColor=f5f5f5";
$t_img_url = "https://img.shields.io/badge/" . $t_badge_text . "-" . $t_bug_count_filtered . "-" . $t_badge_color . ".svg?logo=codeigniter&logoColor=f5f5f5&cacheSeconds=3600";

return array ( 'url' => $t_img_url, 'count' => $t_bug_count_filtered);
}
Expand Down

0 comments on commit ee19e39

Please sign in to comment.