protected function processImages() { foreach ($this->encode_image_file_groups as $image_group) { /** @var $file RokBooster_Compressor_File */ $file = $image_group[0]; $image_group->setResult(base64_encode(file_get_contents($file->getPath()))); $this->cache->write($image_group->getChecksum(), $image_group->getResult(), false); $this->storeFileInfo($image_group); $this->finishedRendering($image_group->getChecksum()); } }