Ejemplo n.º 1
0
 /**
  * this method is called with register_shutdown_function() and writes all data queued into the cache
  * @static
  * @return void
  */
 public static function shutdown()
 {
     // set inShutdown to true so that the output-buffer knows that he is allowed to send the headers
     self::$inShutdown = true;
     // flush all custom output buffers
     while (@ob_end_flush()) {
     }
     // flush everything
     flush();
     // clear tags scheduled for the shutdown
     Pimcore_Model_Cache::clearTagsOnShutdown();
     // write collected items to cache backend
     Pimcore_Model_Cache::write();
 }