summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Cache.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(sharing): set name to target name in sharing cacheMax2023-10-231-0/+4
| | | | | | Fixes #39879. Signed-off-by: Max <max@nextcloud.com>
* pass the share to the cache instead of having to ask the storageRobin Appelman2023-08-281-4/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix various other small psalm issuesCarl Schwan2022-10-171-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-1/+1
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Merge pull request #33574 from nextcloud/search-share-query-filter-no-initVincent Petry2022-08-231-2/+4
|\ | | | | directly build the search filter for shared storage instead of setting up the source cache
| * directly build the search filter for shared storage instead of setting up ↵Robin Appelman2022-08-171-2/+4
| | | | | | | | | | | | the source cache Signed-off-by: Robin Appelman <robin@icewind.nl>
* | further pre-filter search result before setting up share source cacheRobin Appelman2022-08-171-0/+8
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Make DisplayNameCache return null if user doesn't existsCarl Schwan2022-08-161-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update cache when display name changeCarl Schwan2022-04-221-1/+1
| | | | | | This improve the correctness of the data Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Cache display nameCarl Schwan2022-04-221-29/+11
| | | | | | | | This should saves some query in the share backend when displaying the owner and it's not important if the display name is 10 minutes outdated as it is very rare that this gets changed. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* cache the share owner name for formating cache entriesRobin Appelman2022-04-211-4/+14
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use DI for files_sharing CacheMorris Jobke2021-06-171-10/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use proper methods for display name retrievalMorris Jobke2021-06-171-1/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* use searchoperation for storage filter instead of db expressionRobin Appelman2021-06-141-8/+13
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* rework search api to allow searching on multiple caches at onceRobin Appelman2021-06-141-11/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* fix search in nested jailsRobin Appelman2021-01-261-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Limit shared cache search if it is just a fileRoeland Jago Douma2020-11-191-0/+16
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* only get the permissions from the share source if it's not already cachedRobin Appelman2020-09-091-6/+5
| | | | | | this prevents having to setup the share source when doing metadata stuff on the share root Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Correctly check for new default rootJoas Schilling2019-09-041-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Properly initialize the CacheJail for sharingJulius Härtl2019-09-031-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* do not explode when getting permissions from a FailedStorageArthur Schiwon2018-09-261-1/+9
| | | | | | | for instance if a user of an external user backend is not available currently, the whole Files UI would be frozen. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix shared cacheRoeland Jago Douma2018-09-061-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* delay calculating the shared cache root until it's usedRobin Appelman2017-12-041-17/+27
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use the correct root for shared jail when the source storage is also a jailRobin Appelman2017-11-101-1/+14
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* dont die if we try to access the shared cache while setting up the shared ↵Robin Appelman2017-05-241-1/+8
| | | | | | storage Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove unused use statementsMorris Jobke2017-04-221-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* fix shared storage numeric idRobin Appelman2017-03-271-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* do not remove the method and only keep the testsMorris Jobke2017-03-231-0/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove SharedCache::getNumericStorageId to let CacheWrapper do itVincent Petry2017-03-231-8/+0
| | | | | | The CacheWrapper will properly forward the call to the wrapped cache. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #2196 from nextcloud/cache-owner-displaynameLukas Reschke2016-11-181-1/+10
|\ | | | | cache the displayname of the share owner
| * cache the displayname of the share ownerRobin Appelman2016-11-181-1/+10
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | dont use the source cache/storage until neededRobin Appelman2016-11-171-15/+9
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* reuse the known rootinfo in the shared cache when possibleRobin Appelman2016-11-171-0/+29
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Move OC\Files\Storage\Shared to the right namespaceJoas Schilling2016-10-201-2/+2
|
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix apps/Joas Schilling2016-07-211-2/+3
|
* handle path not being set in shared cache (#24993)Robin Appelman2016-06-061-1/+1
|
* Update license headersLukas Reschke2016-05-261-0/+1
|
* Move lib/ to PSR-4Joas Schilling2016-05-251-0/+105