title: What are the benefits of caching instances of a class?
body: <p>I have an application in which I repeatedly use the same (big) class. Since I use AJAX for that App, I always have to create a new object of this class. Someone advised me to cache an instance of this class and use it whenever it is required (using apc in a php environment)</p>
  
  <p>What are the benefits of it ? is it really saving some time ?</p>
  
  <pre><code>    $this-&gt;tickets_persist = unserialize(@apc_fetch("Tickets"));
  
      if (!$this-&gt;tickets_persist) {
              $this-&gt;tickets_persist = new Tickets_Persistance(); // Take long time
              apc_store("Tickets", serialize($this-&gt;tickets_persist));
      } 
  </code></pre>