title: UI5 Router destroying cached views
body: <p>I have a Master Details Page App where we configured the Router for the same to navigate between pages.</p>
  
  <p>App.view.xml</p>
  
  <pre><code>&lt;SplitApp id="rootControl" detailNavigate="onDetailNavigation"&gt;
  &lt;/SplitApp&gt;
  </code></pre>
  
  <p>manifest.json</p>
  
  <pre><code>"routing": {
                  "config": {
                      "routerClass": "sap.m.routing.Router",
                      "viewPath": "master",
                      "controlId": "rootControl",
                      "viewType": "XML",
                      "async":"true"
                  },
                  "routes": [
                      {
                          ....
                      },
                      ...
                  "targets": {}
                     ...
  </code></pre>
  
  <p>App is simple Employee CRUD app, i have configured the router with 2 routes 1 for Create/Edit and another one for Dispaly</p>
  
  <p>I need to destroy the view if i navigate from one view to another view, like on start of the page show the Master Page with all the employees and detail page show display view of the employee1.</p>
  
  <p>i have Edit button on the Display view, on press i navigate details page from Display view to Edit View, on this point i need to destroy the Display view from the router, which is cached.</p>
  
  <p><strong>How to achive this? or do i need to take different approch to solve the cacheing? or I should not think of Memory</strong> </p>
  
  <p>tried calling destroy onDetailNavigate of SplitApp</p>
  
  <pre><code>onDetailNavigation : function(oEvent){
              console.log("Split app onDetailNavigation");
              oEvent.getParameter('from').destroy();
          }
  </code></pre>
  
  <p>Which gives Error next time go back to same view again</p>
  
  <pre><code>Error: The object with ID __xmlview4 was destroyed and cannot be used anymore.
  </code></pre>