messagerie-melanie2 / Roundcube-Plugin-Roundrive

Plugin based on kolab_file plugin to connect to a webdav server
4 stars 12 forks source link

Fixed missing function bug, updated flysystem, and added caching #9

Open kidmock opened 6 years ago

kidmock commented 6 years ago

I have a large number of files in Owncloud/Nextcloud and the performance was terrible so I added Redis Caching and it's so much better.

Thought I'd share.

informatik-bks commented 6 years ago

Hi kidmock

We also have the same issue, this would be a greate improvement. Is there also a way to specify which cache to use or do you just use a local cache?

regards and thanks for the fix

kidmock commented 6 years ago

@informatik-bks

Yes you can change to some other caching mechanism.

https://flysystem.thephpleague.com/caching/

I found Redis to be the most efficient so that's what I used. I tried memory at first. It's still commented in the code: https://github.com/kidmock/Roundcube-Plugin-Roundrive/blob/master/lib/roundrive_files_engine.php

informatik-bks commented 6 years ago

Thanks for your work, very usefull feature! works like a charm

tpayen commented 6 years ago

Thanks for this work, performances was indeed very poor with multiple folders. I review it asap

informatik-bks commented 6 years ago

Note: If you log in as another user, you can see which files are shared (from the cache). The god thing is you can not download them but you see the filenames. Would be nice if someone could fix that for a later release of this plugin.

chers Andreas

j-insan3 commented 6 years ago

Yes, i noticed the same. If you have more then one user people can see each others cache. But this plugin is a great start. Hopefully someone can fix the caching issue.