func('file'); define('CACHE_FILE_PATH', IA_ROOT . '/data/cache/'); function cache_read($key, $dir = '', $include = true) { $key = str_replace(':', '@', $key); $key = CACHE_FILE_PATH . $key; if (!is_file($key)) { return array(); } return $include ? include $key : file_get_contents($key); } function cache_write($key, $data, $dir = '') { global $_W; if (empty($key) || !isset($data)) { return false; } $key = str_replace(':', '@', $key); if (!is_string($data)) { $data = "