GitHub PullRequestReviewCommentEvent at 2014-05-13 22:35:10
Repository: phpseclib
Actor: bantu
Payload: {"comment":{"url":"https://api.github.com/repos/phpseclib/phpseclib/pulls/comments/12612654","id":12612654,"diff_hunk":"@@ -522,12 +532,32 @@ function login($username)\n \n         $this->pwd = $this->_realpath('.');\n \n-        $this->_save_dir($this->pwd);\n+        $this->_update_cache($this->pwd, array());\n \n         return true;\n     }\n \n     /**\n+     * Disable the cache\n+     *\n+     * @access public\n+     */\n+    function disableCache()\n+    {\n+        $this->use_cache = false;\n+    }\n+\n+    /**\n+     * Enable the cache\n+     *\n+     * @access public\n+     */\n+    function enableCache()\n+    {\n+        $this->use_cache = true;\n+    }\n+","path":"phpseclib/Net/SFTP.php","position":70,"original_position":70,"commit_id":"77641003fa3827da6444c43fa8b87371549f9eed","original_commit_id":"77641003fa3827da6444c43fa8b87371549f9eed","user":{"login":"bantu","id":189375,"avatar_url":"https://avatars.githubusercontent.com/u/189375?","gravatar_id":"88483d87947219efecfc570465c753b2","url":"https://api.github.com/users/bantu","html_url":"https://github.com/bantu","followers_url":"https://api.github.com/users/bantu/followers","following_url":"https://api.github.com/users/bantu/following{/other_user}","gists_url":"https://api.github.com/users/bantu/gists{/gist_id}","starred_url":"https://api.github.com/users/bantu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bantu/subscriptions","organizations_url":"https://api.github.com/users/bantu/orgs","repos_url":"https://api.github.com/users/bantu/repos","events_url":"https://api.github.com/users/bantu/events{/privacy}","received_events_url":"https://api.github.com/users/bantu/received_events","type":"User","site_admin":false},"body":"Also add a method for flushing the cache? Or is there another means of manually doing that?","created_at":"2014-05-13T22:35:10Z","updated_at":"2014-05-13T22:35:10Z","html_url":"https://github.com/phpseclib/phpseclib/pull/338#discussion_r12612654","pull_request_url":"https://api.github.com/repos/phpseclib/phpseclib/pulls/338","_links":{"self":{"href":"https://api.github.com/repos/phpseclib/phpseclib/pulls/comments/12612654"},"html":{"href":"https://github.com/phpseclib/phpseclib/pull/338#discussion_r12612654"},"pull_request":{"href":"https://api.github.com/repos/phpseclib/phpseclib/pulls/338"}}}}