Artifact f97272ab9f956a94bc87cee3892427030eb03a77:
- File src/www/admin/acc/reports/graph_pie.php — part of check-in [d4e4b804a8] at 2020-12-09 18:41:41 on branch trunk — Add one hour caching to graphs (user: bohwaz, size: 296) [annotate] [blame] [check-ins using] [more...]
<?php namespace Garradin; use Garradin\Accounting\Graph; require_once __DIR__ . '/_inc.php'; header('Content-Type: image/svg+xml'); $expiry = time() + 1800; $hash = sha1('pie_' . json_encode($criterias)); if (!Utils::HTTPCache($hash, $expiry)) { echo Graph::pie(qg('type'), $criterias); }