]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6615 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 17 Jan 2024 08:04:15 +0000 (09:04 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 17 Jan 2024 08:04:15 +0000 (09:04 +0100)
app/Fluidbook/Farm.php
app/Models/FluidbookDocument.php

index aa29d8ed6174a24b241d82c9cbf93cbd6dc65237..3545088446a8c20ee1d7cc1ec4e3c943d9c35788 100644 (file)
@@ -15,7 +15,6 @@ class Farm
 {
     protected static $_outPDF = [];
     protected static $_forceServer = false;
-
     //protected static $_forceServer = 'alphaville';
 
     protected static $_region = Region::EUROPE;
index 12e2df004074d3d732b7f98202c5e9f0b98b4327..e77b97661011e4817e77e93139506af97a1455bf 100644 (file)
@@ -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) {