{"action":"created","issue":{"url":"https://api.github.com/repos/robotframework/robotframework/issues/2106","labels_url":"https://api.github.com/repos/robotframework/robotframework/issues/2106/labels{/name}","comments_url":"https://api.github.com/repos/robotframework/robotframework/issues/2106/comments","events_url":"https://api.github.com/repos/robotframework/robotframework/issues/2106/events","html_url":"https://github.com/robotframework/robotframework/issues/2106","id":101024939,"number":2106,"title":"Imported libraries should not be cached","user":{"login":"pekkaklarck","id":114985,"avatar_url":"https://avatars.githubusercontent.com/u/114985?v=3","gravatar_id":"","url":"https://api.github.com/users/pekkaklarck","html_url":"https://github.com/pekkaklarck","followers_url":"https://api.github.com/users/pekkaklarck/followers","following_url":"https://api.github.com/users/pekkaklarck/following{/other_user}","gists_url":"https://api.github.com/users/pekkaklarck/gists{/gist_id}","starred_url":"https://api.github.com/users/pekkaklarck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pekkaklarck/subscriptions","organizations_url":"https://api.github.com/users/pekkaklarck/orgs","repos_url":"https://api.github.com/users/pekkaklarck/repos","events_url":"https://api.github.com/users/pekkaklarck/events{/privacy}","received_events_url":"https://api.github.com/users/pekkaklarck/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/robotframework/robotframework/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/robotframework/robotframework/labels/prio-medium","name":"prio-medium","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/robotframework/robotframework/milestones/40","html_url":"https://github.com/robotframework/robotframework/milestones/3.0","labels_url":"https://api.github.com/repos/robotframework/robotframework/milestones/40/labels","id":1176901,"number":40,"title":"3.0","description":"","creator":{"login":"pekkaklarck","id":114985,"avatar_url":"https://avatars.githubusercontent.com/u/114985?v=3","gravatar_id":"","url":"https://api.github.com/users/pekkaklarck","html_url":"https://github.com/pekkaklarck","followers_url":"https://api.github.com/users/pekkaklarck/followers","following_url":"https://api.github.com/users/pekkaklarck/following{/other_user}","gists_url":"https://api.github.com/users/pekkaklarck/gists{/gist_id}","starred_url":"https://api.github.com/users/pekkaklarck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pekkaklarck/subscriptions","organizations_url":"https://api.github.com/users/pekkaklarck/orgs","repos_url":"https://api.github.com/users/pekkaklarck/repos","events_url":"https://api.github.com/users/pekkaklarck/events{/privacy}","received_events_url":"https://api.github.com/users/pekkaklarck/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":20,"state":"open","created_at":"2015-06-23T08:36:43Z","updated_at":"2015-11-19T13:28:32Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-08-14T14:44:32Z","updated_at":"2015-11-19T13:47:17Z","closed_at":null,"body":"Currently we put imported libraries into an internal cache to avoid importing and processing them multiple times. It's questionable how much time that actually saves and there's a risk that we waste memory keeping references to libraries used only once. The cache also makes the overall import logic more complicated and causes bugs like #2105. Need to measure what kind of performance changes removing the cache would have.\r\n\r\nWe are also thinking about not caching resources (#2099) and variable files (#2101).\r\n"},"comment":{"url":"https://api.github.com/repos/robotframework/robotframework/issues/comments/158060713","html_url":"https://github.com/robotframework/robotframework/issues/2106#issuecomment-158060713","issue_url":"https://api.github.com/repos/robotframework/robotframework/issues/2106","id":158060713,"user":{"login":"stasiek","id":3923601,"avatar_url":"https://avatars.githubusercontent.com/u/3923601?v=3","gravatar_id":"","url":"https://api.github.com/users/stasiek","html_url":"https://github.com/stasiek","followers_url":"https://api.github.com/users/stasiek/followers","following_url":"https://api.github.com/users/stasiek/following{/other_user}","gists_url":"https://api.github.com/users/stasiek/gists{/gist_id}","starred_url":"https://api.github.com/users/stasiek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stasiek/subscriptions","organizations_url":"https://api.github.com/users/stasiek/orgs","repos_url":"https://api.github.com/users/stasiek/repos","events_url":"https://api.github.com/users/stasiek/events{/privacy}","received_events_url":"https://api.github.com/users/stasiek/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T13:47:17Z","updated_at":"2015-11-19T13:47:17Z","body":"How about some flag-parameter for `Library` to make sure the import is fresh?\r\nLike\r\n`Library  SwingLibrary  FRESH`"}}