Joas Schilling
ba87db3fcc
Fix others
8 years ago
Lukas Reschke
aba539703c
Update license headers
8 years ago
Vincent Petry
c9b26d065b
Move cache chunk TTL value to FileChunking class
This makes it less generic and only used for actual file chunking
8 years ago
Frederik Kammer
299520b322
Add config value for cache gc ttl
8 years ago
Vincent Petry
e0af5263fb
Allow chunk GC mtime tolerance for unfinished part chunks
Whenever part chunks are written, every fwrite in the write loop will
reset the mtime to the current mtime. Only at the end will the touch()
operation set the mtime to now + ttl, in the future.
However the GC code is expecting that every chunk with mtime < now are
old and must be deleted. This causes the GC to sometimes delete part
chunks in which the write loop is slow.
To fix this, a tolerance value is added in the GC code to allow for
more time before a part chunk gets deleted.
8 years ago
Roeland Jago Douma
d9007ccacf
Move \OC\Cache to PSR-4
8 years ago
Thomas Müller
682821c71e
Happy new year!
8 years ago
Roeland Jago Douma
98c4951f45
getLowStrengthGenerator does not do anything anymore
8 years ago
Joas Schilling
e2cfcd992c
Allow storage wrappers to through a forbidden exception with retry information
8 years ago
Morris Jobke
b945d71384
update licence headers via script
8 years ago
Thomas Müller
d3ac73c0c9
Remove OC_Log
9 years ago
Vincent Petry
dd4de48418
Do not try clearing locked files in cache folder
9 years ago
Thomas Müller
fc474de573
Fixing "ImportController::__construct() must implement interface OCP\\ICache, instance of OC\\Cache\\File given"
9 years ago
Morris Jobke
f63915d0c8
update license headers and authors
9 years ago
Lukas Reschke
70ca0102f5
Fix PHPDoc annotations
9 years ago
Thomas Müller
97a3d8c313
Fix login handler for file cache - fixes #16795
9 years ago
Thomas Müller
5e60795962
Bring back OC\Cache\File - fixes #16760
9 years ago
Arthur Schiwon
3de7f58321
remove file cache classes and its tests
9 years ago
Thomas Müller
1b42b492dc
kill OC_FileProxy :boom:
9 years ago
Jenkins for ownCloud
b585d87d9d
Update license headers
9 years ago
Vincent Petry
b495ca4924
Added part files for when writing chunks
Whenever a chunk is being written, it is now written to a part file
first. This is to avoid a concurrent chunk upload to believe that the
former chunk already exists, even though it's not fully written.
This makes sure that the final file assembly is only done when all
chunks were successfully written.
Also added an extra unique id to chunk parts in case the same chunk is
uploaded twice concurrently.
9 years ago
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0
.
9 years ago
Jenkins for ownCloud
6a1a4880f0
Updating license headers
9 years ago
Robin Appelman
4a9c64e96b
Only make sure the cache directory exists when we use it
9 years ago
Jörn Friedrich Dreyer
86935fab17
readd is_file
9 years ago
Arthur Schiwon
ded8cc47cf
:camel:case
9 years ago
Jörn Friedrich Dreyer
2d8f57a1ea
check if cache files are readable
9 years ago
Robin McCorkell
87b548ed91
Fix all PHPDoc types and variable names, in /lib
10 years ago
Bart Visscher
a4b7f5155f
Fix PHPdoc in lib/private
using scrutinizer patch
10 years ago
Vincent Petry
ab56f69416
Do not expire chunks while checking for their existence
The expiration should be done by the gc() function on login, not while
isComplete() is calling hasKey() for every chunk.
10 years ago
Vincent Petry
10c9b8eb99
Cache folder is now configurable
When using an external cache folder, it is automatically mounted in
FileSystem::initFileSystem so that any app can use it transparently
by creating a view on the "/$user/cache" directory.
10 years ago
Jörn Friedrich Dreyer
2a6a9a8cef
polish documentation based on scrutinizer patches
10 years ago
Thomas Müller
9c9dc276b7
move the private namespace OC into lib/private - OCP will stay in lib/public
Conflicts:
lib/private/vcategories.php
10 years ago
Thomas Tanghus
fe86182dac
OC_Cache namespace changes and add UserCache to server container.
Refs #4863
10 years ago
Thomas Müller
0fb719dffe
adding size() to the file cache
10 years ago
Arthur Schiwon
ec3639dc7a
Always check variable type before using readdir to avoid surprises
10 years ago
Robin Appelman
c5402f4575
use strict equals in readdir loops to prevent issues with '0' files
11 years ago
Bjoern Schiessle
ab6e47b44a
oc_cache needs to disable file proxys for read/write operation. Otherwise the operation will go through the encryption app which will not work.
11 years ago
Arthur Schiwon
c8a2beccb0
Cache: mount user mountpoints to make sure that // exists before accessing it. Fixes #2553 and #2374
11 years ago
Sam Tuke
8b01286a5d
Merged branch 'master'
11 years ago
Robin Appelman
c88c54bbb0
make sure we can do our tests again
11 years ago
Thomas Müller
23f348c99f
Respect coding style
11 years ago
Thomas Mueller
3829460ab8
adding space between) and {
11 years ago
Michael Gapczynski
301baf0215
$storage shouldn't be static in OC_Cache_File
12 years ago
Bart Visscher
9e32e07306
Fix OC_Cache_File
12 years ago
Thomas Mueller
d786194ddc
fixing: apps/files/ajax/scan.php
12 years ago
Bart Visscher
32721e7b07
Remember storage view in OC_Cache_File
12 years ago
Bart Visscher
53e51fe46b
Clean user cache on login
12 years ago
Robin Appelman
51566e87c7
add prefix option to OC_Cache::clear
12 years ago
Bart Visscher
ab788eaa23
OC_Cache_File ttl=0 indicates forever, but expire in a day to keep the cache clean
12 years ago