aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache/Cache.php
Commit message (Collapse)AuthorAgeFilesLines
* perf(files): faster query to fetch incomplete directoriesperf/improve-incomplete-scanBenjamin Gaussorgues2025-02-131-14/+5
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix: Harden files scanner for invalid null accessFerdinand Thiessen2025-01-281-13/+19
| | | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: use scan_permissions when copying cache itemsRobin Appelman2024-12-041-1/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: store unmaked source permissions as scan_permissions when loading share ↵Robin Appelman2024-12-041-0/+3
| | | | | | cache items Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: Wrap partial cache entry in CacheEntryartonge/fix/getting_cache_entryLouis Chemineau2024-11-211-2/+2
| | | | | | | | Because it is returned here: https://github.com/nextcloud/server/blob/7b7d07c5750583ab3a7b29112af475f5c8891143/lib/private/Files/Cache/Cache.php#L136-L137 And some implementation got stricter: https://github.com/nextcloud/groupfolders/blob/df95bf6ba807da5171de91108879b6d8aa9f3611/lib/Mount/RootEntryCache.php#L23-L28 Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore(deps): Bump nextcloud/coding-standard in /vendor-bin/cs-fixerdependabot/composer/vendor-bin/cs-fixer/nextcloud/coding-standard-1.3.2dependabot[bot]2024-10-191-1/+1
| | | | | | | | | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 1.3.1 to 1.3.2. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v1.3.1...v1.3.2) --- updated-dependencies: - dependency-name: nextcloud/coding-standard dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(db): Apply query prepared statementsdbQueriesExecStmt2Git'Fellow2024-10-171-21/+21
| | | | | | | | | | | | | | | | Fix: psalm fix: bad file fix: bug chore: add batch chore: add batch chore: add batch fix: psalm
* chore: Add proper deprecation dates where missingFerdinand Thiessen2024-09-201-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: verify that parent exists in cache when insertingRobin Appelman2024-09-181-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #47852 from nextcloud/sharding-code-fixesJohn Molakvoæ2024-09-161-1/+1
|\
| * fix: misc code fixes around db shardingsharding-code-fixesRobin Appelman2024-09-091-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix(files): Adjust Cache::searchQuery() parameter name to match interfaceprovokateurin2024-09-131-2/+2
|/ | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Apply php:cs recommendationsLouis Chemineau2024-08-281-9/+9
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: hint storage id in more placesRobin Appelman2024-08-281-2/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: implement distributing partitioned queries over multiple shardsRobin Appelman2024-08-281-4/+92
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-3/+3
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix: always set storage id in Cache::getRobin Appelman2024-07-171-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: add set storage id for more cache queriesRobin Appelman2024-07-171-0/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: add base class for extending the query builderRobin Appelman2024-07-121-3/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: get child ids for folder in a separate query during moveRobin Appelman2024-06-131-4/+21
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(files): Use isRetryable to catch retryable exceptionsLouis Chemineau2024-06-111-2/+6
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-37/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* perf(db): Sort data for IN before chunkingChristoph Wurst2024-04-261-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #43574 from nextcloud/enh/noid/lazyappconfig-migrate-metadataMaxence Lange2024-04-171-2/+2
|\ | | | | enh(metadata): migrate metadata to lazy appconfig
| * migrate metadata to lazy appconfigMaxence Lange2024-02-141-2/+2
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | feat(files)): Add retry logic to cover deadlock situations when moving many ↵Louis Chemineau2024-03-281-6/+25
| | | | | | | | | | | | files Signed-off-by: Louis Chemineau <louis@chmn.me>
* | fix(filecache): Move from array_merge to avoid memory exhaustionGit'Fellow2024-03-041-2/+7
|/ | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* improve di performance for cacheRobin Appelman2024-02-091-44/+36
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #41272 from nextcloud/fixOccScansGit'Fellow2023-11-281-3/+6
|\ | | | | fix: reduce memory consumption of scans
| * fix: reduce memory consumption of scansGit'Fellow2023-11-031-3/+6
| | | | | | | | | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Fix lint Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+1
| | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | refactor: Repalce array_search with in_array in lib/Christoph Wurst2023-11-221-2/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | ignore metadata if table is emptyMaxence Lange2023-11-141-2/+2
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | Support getting and setting metadata in DAV requestsLouis Chemineau2023-11-081-2/+9
|/ | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: Prevent PHP warnings when optional CacheEntry attributes are unsetFerdinand Thiessen2023-08-161-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* select the fileid first when looking for incomplete filesRobin Appelman2023-08-141-5/+9
| | | | | | this seems to improve mariadbs index selection Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: simplify `sourceData` checkJohn Molakvoæ2023-08-051-1/+1
| | | | Co-authored-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
* Catch more invalid cache source storage pathsJosh Richards2023-08-031-1/+1
| | | | | | | | | | OC\Files\Cache\Cache::get can return string|false|null, not just string|false. - nextcloud/server#26270 added handling of false, but null is needed too. - Well, or we change the default $resullt to false, but I'm not sure if that has other ramifications and the real need here is to simply catch situations where the cache source storage path is not valid for whatever reason Related: nextcloud/server#19009 Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
* chore: Replace \OC::$server->query with \OCP\Server::get in /libChristoph Wurst2023-07-061-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* chore: Drop dead private methods in /libChristoph Wurst2023-06-061-13/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #38261 from fsamapoor/replace_strpos_calls_in_lib_privateRobin Appelman2023-06-011-1/+1
|\ | | | | Refactors "strpos" calls in lib/private to improve code readability.
| * Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-1/+1
| | | | | | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* | Fix return types in phpdocCôme Chilliet2023-05-151-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Get rid of more int casts in file size manipulationsCôme Chilliet2023-05-111-6/+7
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix type hintsRobin Appelman2023-04-041-5/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix unencrypted folder size when no children with unencrypted size set are leftRobin Appelman2023-04-041-1/+24
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix unencrypted_size for folders when scanning the filesystem with ↵Robin Appelman2023-04-041-3/+5
| | | | | | encryption enabled Signed-off-by: Robin Appelman <robin@icewind.nl>
* clear encrypted flag when moving away from encrypted storageRobin Appelman2023-04-011-0/+22
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #34773 from ↵Côme Chilliet2023-03-211-1/+19
|\ | | | | | | | | nextcloud/artonge/feat/dispatch_entry_removed_event_for_all_entries Dispatch event for all removed entries