create-prisma-php-app 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bootstrap.php +10 -1
- package/package.json +1 -1
package/dist/bootstrap.php
CHANGED
|
@@ -817,6 +817,10 @@ final class Bootstrap extends RuntimeException
|
|
|
817
817
|
|
|
818
818
|
public static function createUpdateRequestData(): void
|
|
819
819
|
{
|
|
820
|
+
if (Bootstrap::$contentToInclude === '') {
|
|
821
|
+
return;
|
|
822
|
+
}
|
|
823
|
+
|
|
820
824
|
$requestJsonData = SETTINGS_PATH . '/request-data.json';
|
|
821
825
|
|
|
822
826
|
if (file_exists($requestJsonData)) {
|
|
@@ -961,6 +965,9 @@ try {
|
|
|
961
965
|
ob_start();
|
|
962
966
|
require_once APP_PATH . '/not-found.php';
|
|
963
967
|
MainLayout::$childLayoutChildren = ob_get_clean();
|
|
968
|
+
|
|
969
|
+
http_response_code(404);
|
|
970
|
+
CacheHandler::$isCacheable = false;
|
|
964
971
|
}
|
|
965
972
|
|
|
966
973
|
// If the top-level layout is in use
|
|
@@ -1011,7 +1018,9 @@ try {
|
|
|
1011
1018
|
MainLayout::$html = TemplateCompiler::injectDynamicContent(MainLayout::$html);
|
|
1012
1019
|
MainLayout::$html = "<!DOCTYPE html>\n" . MainLayout::$html;
|
|
1013
1020
|
|
|
1014
|
-
if (
|
|
1021
|
+
if (
|
|
1022
|
+
http_response_code() === 200 && isset(Bootstrap::$requestFilesData[Request::$decodedUri]['fileName']) && $_ENV['CACHE_ENABLED'] === 'true'
|
|
1023
|
+
) {
|
|
1015
1024
|
CacheHandler::saveCache(Request::$decodedUri, MainLayout::$html);
|
|
1016
1025
|
}
|
|
1017
1026
|
|