title: Failed saving metadata to metadataCache
body: <p>I did a lot digging around for a solution to this problem and was unable to come to a solution.</p>
  
  <p><strong>Problem:</strong>
  I have a Zend Framework 1.10.7 application running on the terminal and through a web interface. When it is running over the web it works flawlessly but when I run it through command line it keeps giving me an error</p>
  
  <blockquote>
    <p>Notice: Failed saving metadata to metadataCache</p>
  </blockquote>
  
  <p>I looked at various other topics including <a href="https://stackoverflow.com/questions/6331081/accessing-the-zend-application-bootstrap-init-functions-after-bootstrapping">Accessing the Zend Application Bootstrap _init Functions After Bootstrapping</a> and I was still unable to solve the problem because I really couldn't follow what was going on there. It seems to be the same problem but I just couldn't understand what to do.</p>
  
  <p>Could someone please help me out with this? </p>
  
  <p>Here is the basic of what I have:</p>
  
  <p><strong>Bootstrap</strong></p>
  
  <pre><code>protected function _initRouter()
  {
      if (PHP_SAPI == 'cli') {
          $this-&gt;bootstrap('frontcontroller');
          $front = $this-&gt;getResource('frontcontroller');
          $front-&gt;setRouter(new PP_Tasks_Init());
          //$front-&gt;setRequest(new Zend_Controller_Request_Simple());
      }
  }
  </code></pre>