{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/gallery/issues/448","labels_url":"https://api.github.com/repos/owncloud/gallery/issues/448/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/gallery/issues/448/comments","events_url":"https://api.github.com/repos/owncloud/gallery/issues/448/events","html_url":"https://github.com/owncloud/gallery/issues/448","id":112328737,"number":448,"title":"Very slow loading of gallery list due to slow getDirectoryListing() on external storage","user":{"login":"LukasReschke","id":878997,"avatar_url":"https://avatars.githubusercontent.com/u/878997?v=3","gravatar_id":"","url":"https://api.github.com/users/LukasReschke","html_url":"https://github.com/LukasReschke","followers_url":"https://api.github.com/users/LukasReschke/followers","following_url":"https://api.github.com/users/LukasReschke/following{/other_user}","gists_url":"https://api.github.com/users/LukasReschke/gists{/gist_id}","starred_url":"https://api.github.com/users/LukasReschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukasReschke/subscriptions","organizations_url":"https://api.github.com/users/LukasReschke/orgs","repos_url":"https://api.github.com/users/LukasReschke/repos","events_url":"https://api.github.com/users/LukasReschke/events{/privacy}","received_events_url":"https://api.github.com/users/LukasReschke/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/gallery/labels/blocked%20by%20core","name":"blocked by core","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/gallery/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/gallery/labels/performance","name":"performance","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-20T09:55:38Z","updated_at":"2015-11-03T10:03:32Z","closed_at":null,"body":"Ref https://github.com/owncloud/core/issues/10077#issuecomment-149499679 \r\n\r\nOpened here as well to allow people to search for it as well.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27546376-very-slow-loading-of-gallery-list-due-to-slow-getdirectorylisting-on-external-storage?utm_campaign=plugin&utm_content=tracker%2F9328526&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F9328526&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/owncloud/gallery/issues/comments/153303698","html_url":"https://github.com/owncloud/gallery/issues/448#issuecomment-153303698","issue_url":"https://api.github.com/repos/owncloud/gallery/issues/448","id":153303698,"user":{"login":"LukasReschke","id":878997,"avatar_url":"https://avatars.githubusercontent.com/u/878997?v=3","gravatar_id":"","url":"https://api.github.com/users/LukasReschke","html_url":"https://github.com/LukasReschke","followers_url":"https://api.github.com/users/LukasReschke/followers","following_url":"https://api.github.com/users/LukasReschke/following{/other_user}","gists_url":"https://api.github.com/users/LukasReschke/gists{/gist_id}","starred_url":"https://api.github.com/users/LukasReschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukasReschke/subscriptions","organizations_url":"https://api.github.com/users/LukasReschke/orgs","repos_url":"https://api.github.com/users/LukasReschke/repos","events_url":"https://api.github.com/users/LukasReschke/events{/privacy}","received_events_url":"https://api.github.com/users/LukasReschke/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T10:03:32Z","updated_at":"2015-11-03T10:03:32Z","body":"> I'm not entirely sure how much of that is really needed in a basic install. I see that config as an example in many places though. Someone who understands the caching might be able to explain each line. :) I'm also not sure if Redis should be used for everything, or just distributed and locking... etc. This is working, but I'm not sure if it's the best recommendation.\r\n\r\nHappy to help on that.\r\n\r\nSo, when we talk about caching ownCloud uses different caches for different use-cases.\r\n\r\n1. `memcache.local`: The cache where entries should go that are only relevant for a local server. This is usually best APCu as you may use Redis in combination with different servers. However, if you have only one, Redis is fine here as well. These are often entries such as local paths that may differ on clustered setups.\r\n2. `memcache.distributed`: Cache where entries should go that are the same even in clustered setups. You can keep this empty to use the same one as `memcache.local`.\r\n3. `memcache.locking`: Which cache should be used for file locking. We recommend Redis here as others do NOT guarantee the consistency of the entries. Redis does. (e.g. in Memcached an entry may disappear any time, which would make logging useless)\r\n\r\nThe other stuff is just for the Redis connection. You can remove the `dbindex` here. `timeout`, `host` and `port` should however stay."}}