Changeset 95 for trunk/include/xpress_cache.php
- Timestamp:
- Mar 3, 2009, 8:33:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/xpress_cache.php
r36 r95 4 4 function xpress_cache_read($mydirname,$collation_key) 5 5 { 6 $cache_dir = XOOPS_ROOT_PATH . '/cache/'; 6 global $xoops_config; 7 $cache_dir = $xoops_config->xoops_root_path . '/cache/'; 7 8 $cache_time = 0; 8 9 $filename = $cache_dir .$mydirname . '_' . $collation_key; … … 19 20 function xpress_cache_write($mydirname,$collation_key,$content) 20 21 { 21 $cache_dir = XOOPS_ROOT_PATH . '/cache/'; 22 global $xoops_config; 23 $cache_dir = $xoops_config->xoops_root_path . '/cache/'; 22 24 $cache_time = 0; 23 25 … … 35 37 function xpress_cache_clear($mydirname) 36 38 { 37 $cache_dir = XOOPS_ROOT_PATH . '/cache/'; 39 global $xoops_config; 40 $cache_dir = $xoops_config->xoops_root_path . '/cache/'; 38 41 $cache_time = 0; 39 42 if ($dh = opendir($cache_dir)) {
Note: See TracChangeset
for help on using the changeset viewer.