Artifact 80e43ce701f3d86eb8f6dbcd563da84c0fa7712f:
- File src/www/admin/acc/reports/graph_plot_all.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: 335) [annotate] [blame] [check-ins using] [more...]
<?php namespace Garradin; use Garradin\Accounting\Graph; require_once __DIR__ . '/../_inc.php'; qv(['type' => 'string|required']); header('Content-Type: image/svg+xml'); $expiry = time() + 1800; $hash = sha1('plot_all'); if (!Utils::HTTPCache($hash, $expiry)) { echo Graph::plot(qg('type'), [], Graph::MONTHLY_INTERVAL, 600); }