From 7ae632e38de1d5be8fc9fdbf92870e7ac6f2f2e4 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 17 Jan 2024 09:04:15 +0100 Subject: [PATCH] wait #6615 @1 --- app/Fluidbook/Farm.php | 1 - app/Models/FluidbookDocument.php | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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) { -- 2.39.5