diff --git a/svg.php b/svg.php index f1025f4..abcf427 100644 --- a/svg.php +++ b/svg.php @@ -133,8 +133,8 @@ class SVG { header('Content-Type: image/svg+xml'); $cachekey = md5($file . serialize($params) . $conf['template'] . filemtime(__FILE__)); - $cache = new \cache($cachekey, '.svg'); - $cache->_event = 'SVG_CACHE'; + $cache = new \dokuwiki\Cache\Cache($cachekey, '.svg'); + $cache->setEvent('SVG_CACHE'); http_cached($cache->cache, $cache->useCache(array('files' => array($file, __FILE__)))); if($params['e']) {