function _clearCache($sPrefix, $sPath)
{
if (!($rHandler = opendir($sPath))) {
return array('code' => 1, 'message' => _t('_adm_txt_dashboard_cache_clean_failed'));
}
$l = strlen($sPrefix);
while (($sFile = readdir($rHandler)) !== false) {
if (0 === strncmp($sFile, $sPrefix, $l)) {
@unlink($sPath . $sFile);
}
}
closedir($rHandler);
return array('code' => 0, 'message' => _t('_adm_txt_dashboard_cache_clean_success'));
}