]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6948 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 7 Jun 2024 10:24:58 +0000 (12:24 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 7 Jun 2024 10:24:58 +0000 (12:24 +0200)
app/Fluidbook/Farm.php
app/Models/FluidbookDocument.php
app/Models/FluidbookPublication.php

index 3545088446a8c20ee1d7cc1ec4e3c943d9c35788..cf753ab677423f0bbc3429b54c3fd3a127a8bddc 100644 (file)
@@ -22,12 +22,12 @@ class Farm
     protected static $_farmServers = [
         ['name' => 'alphaville', 'host' => 'fluidbook-processfarm', 'port' => 9000, 'weight' => 12, 'region' => Region::EUROPE, 'local' => false],
         ['name' => 'brazil', 'host' => 'brazil.cubedesigners.com', 'weight' => 6, 'region' => Region::USA, 'local' => false],
+        ['name' => 'cloudatlats', 'host' => 'cloudatlas.cubedesigners.com', 'weight' => 4, 'region' => Region::EUROPE, 'local' => false],
         ['name' => 'dracula', 'host' => 'dracula.cubedesigners.com', 'weight' => 1, 'region' => Region::EUROPE, 'local' => true],
         ['name' => 'dobermann', 'host' => 'dobermann.cubedesigners.com', 'weight' => 6, 'region' => Region::EUROPE, 'local' => false],
         ['name' => 'elephantman', 'host' => 'paris.cubedesigners.com', 'weight' => 2, 'region' => Region::EUROPE, 'local' => false],
         ['name' => 'fastandfurious', 'host' => 'fastandfurious.cubedesigners.com', 'weight' => 2, 'region' => Region::EUROPE, 'local' => false],
         //['name' => 'godzilla', 'host' => 'godzilla.cubedesigners.com', 'weight' => 1, 'region' => Region::EUROPE,'local'=>false],
-        ['name' => 'her', 'host' => 'her2.cubedesigners.com', 'weight' => 4, 'region' => Region::EUROPE, 'local' => false],
         ['name' => 'isleofdogs', 'host' => 'paris.cubedesigners.com', 'port' => 9458, 'weight' => 2, 'region' => Region::EUROPE, 'local' => false],
         ['name' => 'jumanji', 'host' => 'paris.cubedesigners.com', 'port' => 9459, 'weight' => 2, 'region' => Region::EUROPE, 'local' => false],
         ['name' => 'kingkong', 'host' => 'kingkong.cubedesigners.com', 'weight' => 6, 'region' => Region::USA, 'local' => true],
index 3914227df5405b14eac4d69004fd00683256e934..ab19ef60b3acbc998fe6442115ad46f58e7c17ee 100644 (file)
@@ -361,7 +361,7 @@ class FluidbookDocument extends ToolboxModel
         }
 
         $doc = $this;
-        $cacheKey = $this->fileCacheKey($page, $format, $resolution, $withText, $withGraphics, $version);
+        $cacheKey = $this->fileCacheKey($page, $format, $resolution, $quality, $withText, $withGraphics, $version);
         if ($forceCheck) {
             Cache::forget($cacheKey);
         }
index b053ecc6f43076356dd9e8cd5ae74d65b7f1e8bf..2f02eea061dcd3c2b1ca612c5a1245e6927d86e5 100644 (file)
@@ -451,7 +451,8 @@ class FluidbookPublication extends ToolboxStatusModel
     public function getFile($page, $format = 'jpg', $resolution = 150, $withText = true, $withGraphics = true, $version = 'html', $force = false)
     {
         $compo = $this->getComposition()[$page];
-        return self::_getDocument($compo[0])->getFile($compo[1], $format, $resolution, $this->JPEGQuality, $withText, $withGraphics, $version, $force);
+        $res= self::_getDocument($compo[0])->getFile($compo[1], $format, $resolution, $this->JPEGQuality, $withText, $withGraphics, $version, $force);
+        return $res;
     }