Use cache when generating graphics

skala
Julio Montoya 15 years ago
parent 4216b1236a
commit 86a63d6210
  1. 4
      main/inc/lib/tracking.lib.php

@ -2647,8 +2647,8 @@ class Tracking {
// $main_graph = new pChart($main_width,$main_height);
$graph_id = 'generate_session_exercise_graph'.Security::remove_XSS($_GET['course']).'-'.intval($_GET['session_id']).'-'.api_get_user_id();
//if ($cache->IsInCache($graph_id, $data_set->GetData())) {
if (0) {
if ($cache->IsInCache($graph_id, $data_set->GetData())) {
//if (0) {
//if we already created the img
//echo 'in cache';
$img_file = $cache->GetHash($graph_id,$data_set->GetData());

Loading…
Cancel
Save