/**
  * Writes the content to the storage
  * @param string $content the string that is to be written
  * @param string $md5 the content hash
  *
  * @return bool
  */
 public function write($content, $md5)
 {
     if ($this->storage === null) {
         return false;
     }
     $this->writeDebug();
     $written = $this->storage->write($content . "<!--" . $md5 . "-->", $md5);
     if ($written !== false && $this->storage->shouldCountQuota()) {
         \CHTMLPagesCache::writeStatistic(0, 1, 0, 0, $written);
     }
     return $written;
 }