Index: trunk/include/xpress_cache.php
===================================================================
--- trunk/include/xpress_cache.php	(revision 36)
+++ trunk/include/xpress_cache.php	(revision 95)
@@ -4,5 +4,6 @@
     function xpress_cache_read($mydirname,$collation_key)
     {
-		$cache_dir = XOOPS_ROOT_PATH . '/cache/';
+    	global $xoops_config;
+		$cache_dir = $xoops_config->xoops_root_path . '/cache/';
 		$cache_time = 0;
         $filename = $cache_dir .$mydirname . '_' . $collation_key;
@@ -19,5 +20,6 @@
     function xpress_cache_write($mydirname,$collation_key,$content)
     {
-		$cache_dir = XOOPS_ROOT_PATH . '/cache/';
+		global $xoops_config;
+		$cache_dir = $xoops_config->xoops_root_path . '/cache/';
 		$cache_time = 0;
 
@@ -35,5 +37,6 @@
     function xpress_cache_clear($mydirname)
     {
-		$cache_dir = XOOPS_ROOT_PATH . '/cache/';
+		global $xoops_config;
+		$cache_dir = $xoops_config->xoops_root_path . '/cache/';
 		$cache_time = 0;
         if ($dh = opendir($cache_dir)) {
