{"action":"created","issue":{"url":"https://api.github.com/repos/willnorris/imageproxy/issues/45","labels_url":"https://api.github.com/repos/willnorris/imageproxy/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/willnorris/imageproxy/issues/45/comments","events_url":"https://api.github.com/repos/willnorris/imageproxy/issues/45/events","html_url":"https://github.com/willnorris/imageproxy/issues/45","id":106785242,"number":45,"title":"Disk cache grows beyond the limit","user":{"login":"Toubib","id":484506,"avatar_url":"https://avatars.githubusercontent.com/u/484506?v=3","gravatar_id":"","url":"https://api.github.com/users/Toubib","html_url":"https://github.com/Toubib","followers_url":"https://api.github.com/users/Toubib/followers","following_url":"https://api.github.com/users/Toubib/following{/other_user}","gists_url":"https://api.github.com/users/Toubib/gists{/gist_id}","starred_url":"https://api.github.com/users/Toubib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Toubib/subscriptions","organizations_url":"https://api.github.com/users/Toubib/orgs","repos_url":"https://api.github.com/users/Toubib/repos","events_url":"https://api.github.com/users/Toubib/events{/privacy}","received_events_url":"https://api.github.com/users/Toubib/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-16T14:28:37Z","updated_at":"2015-09-21T15:11:06Z","closed_at":null,"body":"I've done a load test on my installation with this configuration (there is some options from my fork):\r\n```\r\n/usr/bin/imageproxy -addr=localhost:8980 -cacheDir=/data/imageproxy/cache -cacheSize=1024 -log_dir=/data/imageproxy/log -filetypes=png,PNG,jpg,JPG,jpeg,JPEG,gif,GIF -signatureKey=xxx -logrotatecompatible=true\r\n```\r\n\r\nIn front of that there is a nginx with a disk cache (who doesn't work the same than imageproxy cache as imageproxy still make a head request to the original server).\r\n\r\nI've requested lot of different files and the imageproxy cache is now 3,2GiB with 56197 files. That's far beyond of the 1014MB given on the command line. Am I missing something ?\r\n\r\nSince I already have a cache with nginx, it is possible to add an option to disable imageproxy cache ? "},"comment":{"url":"https://api.github.com/repos/willnorris/imageproxy/issues/comments/142010633","html_url":"https://github.com/willnorris/imageproxy/issues/45#issuecomment-142010633","issue_url":"https://api.github.com/repos/willnorris/imageproxy/issues/45","id":142010633,"user":{"login":"Toubib","id":484506,"avatar_url":"https://avatars.githubusercontent.com/u/484506?v=3","gravatar_id":"","url":"https://api.github.com/users/Toubib","html_url":"https://github.com/Toubib","followers_url":"https://api.github.com/users/Toubib/followers","following_url":"https://api.github.com/users/Toubib/following{/other_user}","gists_url":"https://api.github.com/users/Toubib/gists{/gist_id}","starred_url":"https://api.github.com/users/Toubib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Toubib/subscriptions","organizations_url":"https://api.github.com/users/Toubib/orgs","repos_url":"https://api.github.com/users/Toubib/repos","events_url":"https://api.github.com/users/Toubib/events{/privacy}","received_events_url":"https://api.github.com/users/Toubib/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T15:11:06Z","updated_at":"2015-09-21T15:11:06Z","body":"Done it there https://github.com/Toubib/imageproxy/commit/6a0c813390793225a16ba28129b2812c8fd514b1, no cache mode added.\r\n"}}