diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-10 18:56:22 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-10 18:56:22 -0400 |
commit | 7c908a0016db30c70271304c4d080383911645e3 (patch) | |
tree | cc14759d9476d18310901acb9e48ef7445cb3c8a /lib/filecache.php | |
parent | 1ad5e3e39f7e1c6d8279cf8e06781a8e6512b9fe (diff) | |
download | nextcloud-server-7c908a0016db30c70271304c4d080383911645e3.tar.gz nextcloud-server-7c908a0016db30c70271304c4d080383911645e3.zip |
Sharing files working using share API
Diffstat (limited to 'lib/filecache.php')
-rw-r--r-- | lib/filecache.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/filecache.php b/lib/filecache.php index d956f34dc48..b6f4d23986b 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -324,6 +324,10 @@ class OC_FileCache{ $eventSource->send('scanning',array('file'=>$path,'count'=>$count)); } $lastSend=$count; + // NOTE: Ugly hack to prevent shared files from going into the cache (the source already exists somewhere in the cache) + if (substr($path, 0, 7) == '/Shared') { + return; + } if($root===false){ $view=OC_Filesystem::getView(); }else{ @@ -361,6 +365,10 @@ class OC_FileCache{ * @return int size of the scanned file */ public static function scanFile($path,$root=false){ + // NOTE: Ugly hack to prevent shared files from going into the cache (the source already exists somewhere in the cache) + if (substr($path, 0, 7) == '/Shared') { + return; + } if($root===false){ $view=OC_Filesystem::getView(); }else{ |