aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache
Commit message (Collapse)AuthorAgeFilesLines
...
* | fix: fix FileAccess::getByFileId(InStorage)Robin Appelman2024-05-011-2/+2
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #43574 from nextcloud/enh/noid/lazyappconfig-migrate-metadataMaxence Lange2024-04-173-11/+6
|\ | | | | enh(metadata): migrate metadata to lazy appconfig
| * migrate metadata to lazy appconfigMaxence Lange2024-02-143-11/+6
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | fix: use proper jailed patch in watcherRobin Appelman2024-04-081-0/+74
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: Apply new coding standard to all filesCôme Chilliet2024-04-024-5/+5
| | | | | | | | 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>
* | feat: add interface for lower level filecache acess without having to do ↵Robin Appelman2024-03-251-0/+116
| | | | | | | | | | | | direct db queries Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Refactor `OC\Server::getLockingProvider`Andrew Summers2024-03-151-1/+1
| | | | | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* | refactor(mimeloader): modernize MimeTypeLoaderThomas Citharel2024-03-141-3/+3
| | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | 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>
* | fix types + autoloaderRobin Appelman2024-02-151-5/+14
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | optimize query pattern used by storage filterRobin Appelman2024-02-151-38/+90
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* use OCP\ServerRobin Appelman2024-02-121-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* also improe cache ci for shared cacheRobin Appelman2024-02-093-18/+24
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* improve di performance for cacheRobin Appelman2024-02-093-46/+89
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #43131 from ↵Christoph Wurst2024-02-061-1/+1
|\ | | | | | | | | nextcloud/fix/files/cache-wrapper-no-partial-cache-entry-formatting fix(files): Don't attempt to format a partial cache entry
| * fix(files): Don't attempt to format a partial cache entryChristoph Wurst2024-01-251-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | also updated parent etags when a changed etag is detected during scanningRobin Appelman2024-01-311-6/+29
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | dont reuse etag for folders marked explicitly unscannedRobin Appelman2024-01-311-1/+2
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* perf: Avoid updating the folder size if we know the size differenceJulius Härtl2024-01-121-12/+14
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* 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-232-3/+3
| | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | Merge pull request #41459 from nextcloud/enh/noid/search-metadata-nullMaxence Lange2023-11-231-0/+2
|\ \ | | | | | | implements search on null/notnull metadata
| * | implements search on null/notnull metadataMaxence Lange2023-11-221-0/+2
| | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | | refactor: Repalce array_search with in_array in lib/Christoph Wurst2023-11-222-3/+3
|/ / | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | fix psalmMaxence Lange2023-11-141-5/+1
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | ignore metadata if table is emptyMaxence Lange2023-11-144-6/+26
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | moving metadataqueryMaxence Lange2023-11-133-3/+3
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | feat(files): Allow advanced search for filesBenjamin Gaussorgues2023-11-103-1/+17
| | | | | | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | Support getting and setting metadata in DAV requestsLouis Chemineau2023-11-083-19/+27
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | IFilesMetadataMaxence Lange2023-11-071-1/+1
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | IFilesMetadataMaxence Lange2023-11-073-58/+112
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | optimize cache jail creationRobin Appelman2023-10-191-2/+0
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Convert isset ternary to null coalescing operatorHamid Dehnavi2023-09-281-2/+2
| | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* Store size in int|float for 32bit supportCôme Chilliet2023-09-191-3/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Only read unencrypted_size when file is actually encryptedJulius Härtl2023-09-061-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* reuse dependencies from wrapped cacheRobin Appelman2023-08-181-3/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: Prevent PHP warnings when optional CacheEntry attributes are unsetFerdinand Thiessen2023-08-162-4/+4
| | | | 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>
* Merge pull request #38860 from nextcloud/scanner-change-summaryRobin Appelman2023-07-201-1/+1
|\ | | | | add summary of detected changes to files:scan output
| * add summary of detected changes to files:scan outputRobin Appelman2023-06-161-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | 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>
* | Merge pull request #37969 from nextcloud/poc/noid/systemtags-perf-tag-endpointJulius Härtl2023-06-282-32/+50
|\ \
| * | fix: include invisible tags for adminsArthur Schiwon2023-06-212-41/+36
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | fix: favorites view and universal search against tagsArthur Schiwon2023-06-211-17/+30
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | fix: change if with conditionless else to switch; and a parameter valueArthur Schiwon2023-06-211-19/+24
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | use efficient tag retrieval on DAV report requestArthur Schiwon2023-06-211-16/+21
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - uses DAV search approach against valid files joined by systemtag selector - reduced table join for tag/systemtag search - supports pagination - no changes to the output formats or similar Example request body: <?xml version="1.0"?> <oc:filter-files xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns" xmlns:ocs="http://open-collaboration-services.org/ns"> <d:prop> <d:getcontentlength/> <d:getcontenttype/> <d:getetag/> <d:getlastmodified/> <d:resourcetype/> <nc:face-detections/> <nc:file-metadata-size/> <nc:has-preview/> <nc:realpath/> <oc:favorite/> <oc:fileid/> <oc:permissions/> <nc:nbItems/> </d:prop> <oc:filter-rules> <oc:systemtag>32</oc:systemtag> </oc:filter-rules> <d:limit> <d:nresults>50</d:nresults> <nc:firstresult>0</nc:firstresult> </d:limit> </oc:filter-files> Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>