]> _ Git - cubeextranet.git/commitdiff
wait #3966 @1
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 19 Oct 2020 17:51:50 +0000 (17:51 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 19 Oct 2020 17:51:50 +0000 (17:51 +0000)
inc/ws/Controlleur/class.ws.flash.php
inc/ws/Util/html5/master/class.ws.html5.compiler.php

index 82ac6761b00375d7404a8073f899519af2abbafa..0e8e5293f60940d8262d47f8f6eabd32445288c0 100644 (file)
@@ -831,8 +831,11 @@ class wsFlash extends cubeFlashGateway
         global $core;
         $dao = new wsDAOBook($core->con);
         $dao->setComposition($this->args['book_id'], json_decode($this->args['pages']));
-        // Begin to generate files
-        $dao->compile($this->args['book_id']);
+
+        // Begin to generate files async
+        $book = $dao->selectById($this->args['book_id']);
+        $url = 'https://workshop.fluidbook.com/viewerh/' . $book->book_id . '_' . $book->hash . '_' . time();
+        `wget -t 1 -T 1 $url`;
     }
 
     public function getTexts()
index 9629c92b13f5325fa370a524f3a88c83a1763813..4959ce70726511efa8869b5f563cd5b67bcaac03 100644 (file)
@@ -605,7 +605,7 @@ class wsHTML5Compiler
         $this->writeTexts();
         $this->log('Texts written');
         $this->writeAccessibility();
-        $this->log('Accessibility writter');
+        $this->log('Accessibility written');
         $this->writeExtras();
         $this->log('Extras written');
         $this->populateConfig();