[Scummvm-git-logs] scummvm-web master -> 2c280bfe12b58c436515df84442bc3d46efb812d

Mataniko mataniko at gmail.com
Mon Jan 25 20:18:51 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .

Summary:
2c280bfe12 WEB: Fix potential race condition when building data


Commit: 2c280bfe12b58c436515df84442bc3d46efb812d
    https://github.com/scummvm/scummvm-web/commit/2c280bfe12b58c436515df84442bc3d46efb812d
Author: Mataniko (mataniko at gmail.com)
Date: 2021-01-25T15:18:42-05:00

Commit Message:
WEB: Fix potential race condition when building data

Changed paths:
    include/DataUtils.php


diff --git a/include/DataUtils.php b/include/DataUtils.php
index a05f42af..c1e0336c 100644
--- a/include/DataUtils.php
+++ b/include/DataUtils.php
@@ -95,10 +95,12 @@ class DataUtils
             $outFile = DIR_DATA . "/" . DEFAULT_LOCALE . "/$name.yaml";
             echo("Writing $name data to $outFile\n");
             \file_put_contents($outFile, $yaml);
-            \file_put_contents('.clear-cache', '');
         }
 
         DataUtils::convertYamlToOrm();
+
+        // Clear the cache at the end of all data operations
+        \file_put_contents('.clear-cache', '');
     }
 
     private static function convertYamlToOrm()




More information about the Scummvm-git-logs mailing list