title: How to disable cache on logout in CakePHP
body: <p>I am using cakephp 2.3 version. I need to disable cache only when the user logs out. This is to prevent login in case the back button is pressed.</p>
  
  <p>But for all other scenarios I don't want to disturb caching mechanism.</p>
  
  <p>Right now i use the following function in AppController:</p>
  
  <pre><code>public function beforeRender() {
      $this-&gt;response-&gt;disableCache();
  }
  </code></pre>
  
  <p>But I doubt that it disables the caching process completely. Please help!</p>