{"action":"opened","issue":{"url":"https://api.github.com/repos/jaysylvester/citizen/issues/34","labels_url":"https://api.github.com/repos/jaysylvester/citizen/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/jaysylvester/citizen/issues/34/comments","events_url":"https://api.github.com/repos/jaysylvester/citizen/issues/34/events","html_url":"https://github.com/jaysylvester/citizen/issues/34","id":100005870,"number":34,"title":"Add defaults for application and static asset caching to the config","user":{"login":"jaysylvester","id":2001324,"avatar_url":"https://avatars.githubusercontent.com/u/2001324?v=3","gravatar_id":"","url":"https://api.github.com/users/jaysylvester","html_url":"https://github.com/jaysylvester","followers_url":"https://api.github.com/users/jaysylvester/followers","following_url":"https://api.github.com/users/jaysylvester/following{/other_user}","gists_url":"https://api.github.com/users/jaysylvester/gists{/gist_id}","starred_url":"https://api.github.com/users/jaysylvester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaysylvester/subscriptions","organizations_url":"https://api.github.com/users/jaysylvester/orgs","repos_url":"https://api.github.com/users/jaysylvester/repos","events_url":"https://api.github.com/users/jaysylvester/events{/privacy}","received_events_url":"https://api.github.com/users/jaysylvester/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jaysylvester/citizen/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-10T08:22:32Z","updated_at":"2015-08-10T08:22:32Z","closed_at":null,"body":"Application and static caching only have on/off switches in the config. Using cache.set() in the app provides options, but it would be nice if there were some defaults the user could configure (cache.set() currently defaults to lifespan: 'application' within the cache module).\r\n\r\nStatic caching has no options because it's all handled by the server, which means that if the dev enables the static cache, those files are kept in the cache for the lifetime of the application. The cache could balloon quite quickly.\r\n\r\nDefault should probably be 15 minutes.\r\n\r\n    \"cache\": {\r\n      \"application\": {\r\n        \"enable\": true,\r\n        \"lifespan\": 15\r\n      },\r\n      \"static\": {\r\n        \"enable\": false,\r\n        \"lifespan\": 15\r\n      }\r\n    }"}}