summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache/Storage.php
Commit message (Collapse)AuthorAgeFilesLines
* improve di performance for cacheRobin Appelman2024-02-091-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix Executing a query: SQLSTATE[42000]Andy Xheli2022-11-291-1/+1
| | | | | | | Signed-off-by: Andy Xheli <axheli@axtsolutions.com> Fix https://github.com/nextcloud/server/issues/32007#issuecomment-1329405245 Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
* Fix typos in lib/private subdirectoryluz paz2022-07-271-2/+2
| | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/private` Signed-off-by: luz paz <luzpaz@github.com>
* Merge pull request #31816 from ↵Joas Schilling2022-04-041-0/+1
|\ | | | | | | | | nextcloud/bugfix/noid/deduplicate-storage-id-before-reusing Deduplicate storage ids in list before reusing
| * Deduplicate storage ids in list before reusingJoas Schilling2022-04-041-0/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | cache storage id mapping both waysRobin Appelman2022-03-311-13/+3
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* return dummy availability if storage is not found in cacheRobin Appelman2022-02-251-2/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* better cleanup of filecache when deleting an external storageRobin Appelman2021-05-191-0/+40
| | | | | | this way it can delete the cache entries even with per-user credentials Signed-off-by: Robin Appelman <robin@icewind.nl>
* Log when a storage is marked as unavailableMorris Jobke2021-03-251-0/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove RedundantcastsRoeland Jago Douma2021-03-041-1/+1
| | | | | | For #25839 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-2/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use query builder instead of OC_DB in OC\Files\*Joas Schilling2020-11-091-9/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* log which storage id can't be insertedRobin Appelman2019-09-261-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* set a storage availability delay on auth issues to avoid lock outArthur Schiwon2019-08-221-2/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add event for inserting cache entriesRobin Appelman2019-02-071-1/+3
| | | | | | | | this provides a reliable way for apps to listen to new files without the need to of cache wrappers to hook into inserts themselves (something which isn't 100% reliable) Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* more efficient querying of numeric storage idsRobin Appelman2016-09-071-4/+14
|
* always return numeric storage id as int, also check type equality in test ↵Jörn Friedrich Dreyer2016-08-291-4/+4
| | | | asserts
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-2/+3
|
* Move \OC\Files to PSR-4Roeland Jago Douma2016-04-241-0/+189