Index: trunk/xpressme_integration_kit/include/xpress_cache.php
===================================================================
--- trunk/xpressme_integration_kit/include/xpress_cache.php	(revision 232)
+++ trunk/xpressme_integration_kit/include/xpress_cache.php	(revision 657)
@@ -18,9 +18,6 @@
     {
     	global $xoops_config;
-    	if(defined('XOOPS_ROOT_PATH')){
-    		$cache_dir = XOOPS_ROOT_PATH . '/cache/';
-    	} else {
-    		$cache_dir = $xoops_config->xoops_root_path . '/cache/';
-    	}
+    	
+    	$cache_dir = $xoops_config->xoops_cache_path . '/';
         $filename = $cache_dir .$mydirname . '_' . $collation_key;
         if (xpress_cache_found($filename)) {
@@ -36,5 +33,5 @@
     {
 		global $xoops_config;
-		$cache_dir = $xoops_config->xoops_root_path . '/cache/';
+		$cache_dir = $xoops_config->xoops_cache_path . '/';
 		$cache_time = 0;
 
@@ -53,5 +50,5 @@
     {
 		global $xoops_config;
-		$cache_dir = $xoops_config->xoops_root_path . '/cache/';
+		$cache_dir = $xoops_config->xoops_cache_path . '/';
 		$cache_time = 0;
         if ($dh = opendir($cache_dir)) {
