summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gallery_report.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gallery_report.inc b/gallery_report.inc
index e52e23e..35380ac 100644
--- a/gallery_report.inc
+++ b/gallery_report.inc
@@ -84,6 +84,9 @@ function _gallery_report($download = FALSE, $report = array(), $cache = FALSE) {
$content = theme('gallery_report', $report);
if ($cache) {
+ if ($cache_content = cache_get('gallery_report_'. session_id())) {
+ $content .= $cache_content->data;
+ }
cache_set('gallery_report_'. session_id(), 'cache', $content, time()+600);
}
if ($download) {