{
$compositionCached = $this->compositionCached();
-
set_time_limit(0);
switch ($this->fluidbookSettings->mobileVersion) {
case 'html5-desktop':
break;
}
+ $resolutions = $this->getResolutions();
+ $cacheKey = 'imagesToCopy_' . $this->imageFormat . '_' . md5(json_encode($resolutions));
+ $cacheKey .= '-' . $this->config->JPEGQuality;
+ $cacheKey .= '//' . md5(json_encode($this->config->rasterizePages));
+ $cacheKey .= '||' . md5(json_encode($this->config->vectorPages));
+ $cacheKey .= '!!' . $this->fluidbookSettings->mobileNavigationType;
- if (!$this->isCached('imagesToCopy')) {
+ if (!$this->isCached($cacheKey)) {
$filesToCopy = [];
$rasterizePages = $this->config->rasterizePages;
$thisimagesvg = !$thisrasterize && $this->svg;
$thisbackgroundPrefix = $thisrasterize ? [true] : $this->backgroundsPrefix;
- foreach ($this->getResolutions() as $r) {
+ foreach ($resolutions as $r) {
foreach ($thisbackgroundPrefix as $backgroundsPrefix) {
$source = $this->getFluidbook()->getFile($page, $this->imageFormat, $r, $backgroundsPrefix, true, $imdir);
-
$filesToCopy[$source] = 'data/background/' . $r . '/' . ($backgroundsPrefix ? 't' : 'p') . $page . '.' . $this->imageFormat;
}
}
* @return string
* @throws \Exception
*/
- protected function compileExport($data)
+ protected function compileExport()
{
$data = $this->entry->getPageData();
$basePath = Files::mkdir($this->entry->getFinalPath() . $data->type . '/' . $data->version);