code: public function stop()
      {
          // Now the script has run, generate a new cache file
          $fp = @fopen($this->_file, 'w');
  
          // save the contents of output buffer to the file
          fwrite($fp, ob_get_contents());
          fclose($fp);
  
          ob_end_flush();
      }
docs: Run stop AFTER script