{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/android-runtime/issues/92","labels_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/92/comments","events_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/92/events","html_url":"https://github.com/NativeScript/android-runtime/pull/92","id":83772534,"number":92,"title":"Added the clearRequiredCachedItem command","user":{"login":"Nathanaela","id":850871,"avatar_url":"https://avatars.githubusercontent.com/u/850871?v=3","gravatar_id":"","url":"https://api.github.com/users/Nathanaela","html_url":"https://github.com/Nathanaela","followers_url":"https://api.github.com/users/Nathanaela/followers","following_url":"https://api.github.com/users/Nathanaela/following{/other_user}","gists_url":"https://api.github.com/users/Nathanaela/gists{/gist_id}","starred_url":"https://api.github.com/users/Nathanaela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nathanaela/subscriptions","organizations_url":"https://api.github.com/users/Nathanaela/orgs","repos_url":"https://api.github.com/users/Nathanaela/repos","events_url":"https://api.github.com/users/Nathanaela/events{/privacy}","received_events_url":"https://api.github.com/users/Nathanaela/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-02T01:04:57Z","updated_at":"2015-06-03T21:25:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/NativeScript/android-runtime/pulls/92","html_url":"https://github.com/NativeScript/android-runtime/pull/92","diff_url":"https://github.com/NativeScript/android-runtime/pull/92.diff","patch_url":"https://github.com/NativeScript/android-runtime/pull/92.patch"},"body":"I need this for my http://github.com/nathanaela/nativescript-livesync as it is needs to remove the last version of the page from the cache before it loads the newer version.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NativeScript/android-runtime/issues/comments/108619882","html_url":"https://github.com/NativeScript/android-runtime/pull/92#issuecomment-108619882","issue_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/92","id":108619882,"user":{"login":"froyke","id":357583,"avatar_url":"https://avatars.githubusercontent.com/u/357583?v=3","gravatar_id":"","url":"https://api.github.com/users/froyke","html_url":"https://github.com/froyke","followers_url":"https://api.github.com/users/froyke/followers","following_url":"https://api.github.com/users/froyke/following{/other_user}","gists_url":"https://api.github.com/users/froyke/gists{/gist_id}","starred_url":"https://api.github.com/users/froyke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/froyke/subscriptions","organizations_url":"https://api.github.com/users/froyke/orgs","repos_url":"https://api.github.com/users/froyke/repos","events_url":"https://api.github.com/users/froyke/events{/privacy}","received_events_url":"https://api.github.com/users/froyke/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T21:25:21Z","updated_at":"2015-06-03T21:25:21Z","body":"While @atanasovg is correct and creating a function that could have weird behavior in the core runtime is not the ideal approach, the huge benefit of the live update for the {N} developer productivity must be weighted in.\r\nMay I suggest a middle ground here?\r\nA hacky function with unstable consequences is not suitable for a core runtime, agreed. So, let's make sure we export enough hooks for client code to hack this behavior. In this case it looks like providing a simple getter for the loadedModules is all @Nathanaela  needs in order to implement the clearCache functionality in his own code.\r\n"}}