/**
  * Saves the current element to the cache.
  * If passed, the value of the param $strElementOutput is used as content, otherwise
  * content-generation is triggered again.
  *
  * @param string $strElementOutput
  *
  * @since 3.3.1
  */
 public function saveElementToCache($strElementOutput = "")
 {
     //if no content was passed, rebuild the content
     if ($strElementOutput == "") {
         $strElementOutput = $this->getElementOutput();
     }
     //strip the data-editable values - no use case for regular page views
     $strElementOutput = preg_replace('/data-kajona-editable=\\"([a-zA-Z0-9#_]*)\\"/i', "", $strElementOutput);
     //load the matching cache-entry
     $objCacheEntry = class_cache::getCachedEntry(__CLASS__, $this->getCacheHash1(), $this->getCacheHash2(), $this->getStrPortalLanguage(), true);
     $objCacheEntry->setStrContent($strElementOutput);
     $objCacheEntry->setIntLeasetime(time() + $this->objElementData->getIntCachetime());
     $objCacheEntry->updateObjectToDb();
 }