{"action":"created","issue":{"url":"https://api.github.com/repos/phalcon/cphalcon/issues/1352","labels_url":"https://api.github.com/repos/phalcon/cphalcon/issues/1352/labels{/name}","comments_url":"https://api.github.com/repos/phalcon/cphalcon/issues/1352/comments","events_url":"https://api.github.com/repos/phalcon/cphalcon/issues/1352/events","html_url":"https://github.com/phalcon/cphalcon/issues/1352","id":20727982,"number":1352,"title":"[NFR] Cache flush","user":{"login":"charnad","id":458014,"avatar_url":"https://avatars.githubusercontent.com/u/458014?v=3","gravatar_id":"","url":"https://api.github.com/users/charnad","html_url":"https://github.com/charnad","followers_url":"https://api.github.com/users/charnad/followers","following_url":"https://api.github.com/users/charnad/following{/other_user}","gists_url":"https://api.github.com/users/charnad/gists{/gist_id}","starred_url":"https://api.github.com/users/charnad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charnad/subscriptions","organizations_url":"https://api.github.com/users/charnad/orgs","repos_url":"https://api.github.com/users/charnad/repos","events_url":"https://api.github.com/users/charnad/events{/privacy}","received_events_url":"https://api.github.com/users/charnad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phalcon/cphalcon/labels/New%20Feature%20Request","name":"New Feature Request","color":"DDDDDD"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2013-10-09T08:11:09Z","updated_at":"2015-02-05T18:26:56Z","closed_at":"2013-10-25T17:35:37Z","body":"I was quite surprised not to found flush method in the Cache interfaces and classes. The simples example of use is: I have a running website, i've updated configuration and I need to reset the configuration cache. \r\n\r\nIn my specific current example I want to flush memcached cache, which is possible with plain php: http://www.php.net/manual/en/memcached.flush.php\r\n\r\nProposed change: Add flush() method to \\Phalcon\\Cache\\BackendInterface\r\n\r\nIt should either invalidate or delete all cache entries."},"comment":{"url":"https://api.github.com/repos/phalcon/cphalcon/issues/comments/73098886","html_url":"https://github.com/phalcon/cphalcon/issues/1352#issuecomment-73098886","issue_url":"https://api.github.com/repos/phalcon/cphalcon/issues/1352","id":73098886,"user":{"login":"Lexus27","id":9652768,"avatar_url":"https://avatars.githubusercontent.com/u/9652768?v=3","gravatar_id":"","url":"https://api.github.com/users/Lexus27","html_url":"https://github.com/Lexus27","followers_url":"https://api.github.com/users/Lexus27/followers","following_url":"https://api.github.com/users/Lexus27/following{/other_user}","gists_url":"https://api.github.com/users/Lexus27/gists{/gist_id}","starred_url":"https://api.github.com/users/Lexus27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lexus27/subscriptions","organizations_url":"https://api.github.com/users/Lexus27/orgs","repos_url":"https://api.github.com/users/Lexus27/repos","events_url":"https://api.github.com/users/Lexus27/events{/privacy}","received_events_url":"https://api.github.com/users/Lexus27/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T18:26:56Z","updated_at":"2015-02-05T18:26:56Z","body":"Put all CacheBackend an array backend, and use anywhere static method :: flush () to reset all backend, good Idea?"}}