From: Vincent Vanwaelscappel Date: Wed, 17 Jan 2024 08:04:15 +0000 (+0100) Subject: wait #6615 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7ae632e38de1d5be8fc9fdbf92870e7ac6f2f2e4;p=fluidbook-toolbox.git wait #6615 @1 --- diff --git a/app/Fluidbook/Farm.php b/app/Fluidbook/Farm.php index aa29d8ed6..354508844 100644 --- a/app/Fluidbook/Farm.php +++ b/app/Fluidbook/Farm.php @@ -15,7 +15,6 @@ class Farm { protected static $_outPDF = []; protected static $_forceServer = false; - //protected static $_forceServer = 'alphaville'; protected static $_region = Region::EUROPE; diff --git a/app/Models/FluidbookDocument.php b/app/Models/FluidbookDocument.php index 12e2df004..e77b97661 100644 --- a/app/Models/FluidbookDocument.php +++ b/app/Models/FluidbookDocument.php @@ -340,6 +340,12 @@ class FluidbookDocument extends ToolboxModel public function getFile($page, $format = 'jpg', $resolution = 150, $quality = 85, $withText = true, $withGraphics = true, $version = 'html', $forceCheck = false, $forceProcess = false) { + $forceCheckAll = $this->path() . 'CHECK'; + if (file_exists($forceCheckAll)) { + Cache::tags('fluidbook_document_' . $this->id)->clear(); + unlink($forceCheckAll); + } + $this->_normalize($format, $resolution, $quality, $withText, $withGraphics, $version); if ($forceProcess) {