diff --git a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php index 2db8e991ed..f616b9b6db 100644 --- a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php +++ b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php @@ -1220,7 +1220,7 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper ') VALUES (:fs_name,:fs_dir,:fs_mode,:fs_uid,:fs_gid,:fs_created,:fs_modified,:fs_creator,:fs_mime,:fs_size,:fs_link)'; if (self::LOG_LEVEL > 2) $query = '/* '.__METHOD__.': '.__LINE__.' */ '.$query; $stmt = self::$pdo->prepare($query); - unset(self::$stat_cache[$link]); + unset(self::$stat_cache[parse_url($link,PHP_URL_PATH)]); return !!$stmt->execute(array( 'fs_name' => egw_vfs::basename($link), diff --git a/phpgwapi/inc/class.vfs_stream_wrapper.inc.php b/phpgwapi/inc/class.vfs_stream_wrapper.inc.php index ee5055d817..8a9e866428 100644 --- a/phpgwapi/inc/class.vfs_stream_wrapper.inc.php +++ b/phpgwapi/inc/class.vfs_stream_wrapper.inc.php @@ -7,7 +7,7 @@ * @package api * @subpackage vfs * @author Ralf Becker - * @copyright (c) 2008-9 by Ralf Becker + * @copyright (c) 2008-10 by Ralf Becker * @version $Id$ */ @@ -599,7 +599,11 @@ class vfs_stream_wrapper implements iface_stream_wrapper */ static function symlink($target,$link) { - return self::_call_on_backend('symlink',array($target,$link),false,1); // 1=path is in $link! + if (($ret = self::_call_on_backend('symlink',array($target,$link),false,1))) // 1=path is in $link! + { + self::symlinkCache_remove($link); + } + return $ret; } /** @@ -717,7 +721,7 @@ class vfs_stream_wrapper implements iface_stream_wrapper * @param boolean $check_symlink_components=true check if path contains symlinks in path components other then the last one * @return array */ - static function url_stat ( $path, $flags, $try_create_home=false, $check_symlink_components=true ) + static function url_stat ( $path, $flags=0, $try_create_home=false, $check_symlink_components=true ) { if (self::LOG_LEVEL > 1) error_log(__METHOD__."('$path',$flags,try_create_home=$try_create_home,check_symlink_components=$check_symlink_components)");