aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache/Cache.php
Commit message (Collapse)AuthorAgeFilesLines
...
* add event for inserting cache entriesRobin Appelman2019-02-071-9/+15
| | | | | | | | 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>
* return the correct value when trying to get a non existing item from cache by idRobin Appelman2018-11-161-0/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix UniqueConstraintViolationException while insert into oc_filecacheMorris Jobke2018-11-121-7/+18
| | | | | | | | * fixes #6160 by not being prone to the race condition in insertIfNotExists * fixes #12228 by not using a query that can result in a deadlock * replaces the insertIfNotExists call with an insert which is wrapped into a try-catch block Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use proper code flow instead of not needed else branchMorris Jobke2018-01-251-2/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use basename() instead of self implementationMorris Jobke2017-11-231-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #5812 from MrJeos/masterMorris Jobke2017-07-221-1/+1
|\ | | | | Fix for mb strlen
| * Fix for mb strlenArtem Kochnev2017-07-201-1/+1
| | | | | | Error with moving files with long names in UTF-8
* | Also repair storage id's when repairing invalid entriesRobin Appelman2017-07-211-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add Phan plugin to check for SQL injectionsLukas Reschke2017-07-201-0/+1
|/ | | | | | | | | | This adds a phan plugin which checks for SQL injections on code using our QueryBuilder, while it isn't perfect it should already catch most potential issues. As always, static analysis will sometimes have false positives and this is also here the case. So in some cases the analyzer just doesn't know if something is potential user input or not, thus I had to add some `@suppress SqlInjectionChecker` in front of those potential injections. The Phan plugin hasn't the most awesome code but it works and I also added a file with test cases. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* rename fun to funcRobin Appelman2017-03-301-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add tests for query builder (i)likeRobin Appelman2017-03-301-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Move all children of a folder in a single queryRobin Appelman2017-03-301-18/+27
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #4004 from nextcloud/backport-27172Roeland Jago Douma2017-03-281-0/+8
|\ | | | | Remove SharedCache::getNumericStorageId to let CacheWrapper do it
| * Remove SharedCache::getNumericStorageId to let CacheWrapper do itVincent Petry2017-03-231-0/+8
| | | | | | | | | | | | The CacheWrapper will properly forward the call to the wrapped cache. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #3850 from nextcloud/search-orderMorris Jobke2017-03-231-0/+2
|\ \ | |/ |/| Fix search ordering
| * Fix search orderingRobin Appelman2017-03-231-0/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | [OC/Files/Cache]: Fix wrong usage of basenameXuanwo2017-03-141-1/+2
|/ | | | | | Fix https://github.com/nextcloud/server/issues/3837 Signed-off-by: Xuanwo <xuanwo@yunify.com>
* dont allow empty wildcard searchRobin Appelman2017-03-131-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Allow searching for favoritesRobin Appelman2017-03-081-4/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Implement webdav SEARCHRobin Appelman2017-03-011-7/+36
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Refactor files' CacheEntry object creation to call cacheEntryFromData() all ↵Frédéric Fortier2017-02-221-36/+16
| | | | | | the time thus allowing proper casts to be done Signed-off-by: Frédéric Fortier <frederic.fortier@oronospolytechnique.com>
* Typecast filecache 'storage' as int to return it as documented, fixes #3461Frédéric Fortier2017-02-201-0/+2
| | | | Signed-off-by: Frédéric Fortier <frederic.fortier@oronospolytechnique.com>
* always use numeric storage id in cacheentryRobin Appelman2016-12-131-4/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix cacheentry return wrong storage idRobin Appelman2016-12-131-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* let the share backend get the node cacheentry to save queriesRobin Appelman2016-11-171-16/+28
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-3/+4
|
* Update license headersLukas Reschke2016-05-261-2/+2
|
* Move \OC\Files to PSR-4Roeland Jago Douma2016-04-241-0/+837