From a0cc99ba079b1e73460c11417c4692eb54f2bfb0 Mon Sep 17 00:00:00 2001 From: kjac Date: Mon, 27 May 2024 11:32:18 +0200 Subject: [PATCH 1/3] Reflect server cache changes for umbraco-package.json in docs --- .../tutorials/creating-a-custom-dashboard/README.md | 4 +++- 14/umbraco-cms/tutorials/creating-a-property-editor/README.md | 4 ++-- .../adding-configuration-to-a-property-editor.md | 2 +- .../adding-server-side-validation.md | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/14/umbraco-cms/tutorials/creating-a-custom-dashboard/README.md b/14/umbraco-cms/tutorials/creating-a-custom-dashboard/README.md index fcde327dc18..b83f57a1ac9 100644 --- a/14/umbraco-cms/tutorials/creating-a-custom-dashboard/README.md +++ b/14/umbraco-cms/tutorials/creating-a-custom-dashboard/README.md @@ -89,7 +89,9 @@ At each step, you will find a dropdown for `welcome-dashboard.element.ts`, `and For more information about the `umbraco-package.json` file, read the article [Package Manifest](../../extending/property-editors/package-manifest.md). For more information about the dashboard configurations read the [Dashboards](../../extending/dashboards.md) article. {% hint style="info" %} -Please be aware that the file`umbraco-package.json` is loaded into memory when Umbraco starts up. If you are changing or adding new configurations you will need to start and stop your application for it to be loaded. +The `umbraco-package.json` files are cached by the server. If you are running your site in development mode, the cache is short-lived (~10 seconds). In case changes to `umbraco-package.json` files are not reflected immediately, try reloading the backoffice a few seconds later. + +When running the site in production mode, the cache is long-lived. You can read more about runtime modes in [this article](https://docs.umbraco.com/umbraco-cms/fundamentals/setup/server-setup/runtime-modes). {% endhint %} ## Creating the Dashboard Web Component diff --git a/14/umbraco-cms/tutorials/creating-a-property-editor/README.md b/14/umbraco-cms/tutorials/creating-a-property-editor/README.md index 932af0b1703..93f849f187a 100644 --- a/14/umbraco-cms/tutorials/creating-a-property-editor/README.md +++ b/14/umbraco-cms/tutorials/creating-a-property-editor/README.md @@ -69,7 +69,7 @@ At each step, you will find a dropdown for `suggestions-property-editor-ui.eleme {% endcode %} {% hint style="info" %} -Make sure to restart the application after you create and update`umbraco-package.json` +The `umbraco-package.json` files are cached by the server. When creating new `umbraco-package.json` files, it might take a few seconds before those are loaded into the server cache. {% endhint %} {% hint style="info" %} @@ -121,7 +121,7 @@ Now our basic parts of the editor are done, namely: * The package manifest, telling Umbraco what to load * The web component for the editor -4. Restart the application. +4. Reload the backoffice. ## Registering the Data Type in Umbraco diff --git a/14/umbraco-cms/tutorials/creating-a-property-editor/adding-configuration-to-a-property-editor.md b/14/umbraco-cms/tutorials/creating-a-property-editor/adding-configuration-to-a-property-editor.md index 5dbf64474ba..2423948ef1e 100644 --- a/14/umbraco-cms/tutorials/creating-a-property-editor/adding-configuration-to-a-property-editor.md +++ b/14/umbraco-cms/tutorials/creating-a-property-editor/adding-configuration-to-a-property-editor.md @@ -170,7 +170,7 @@ You can use any Property Editor UI to define Configuration fields. The alias of -3. Save the files and restart the application. Once it has restarted we can configure our Data Type: +3. Save the files and reload the backoffice. We can now configure our Data Type:

Data Type configuration.

diff --git a/14/umbraco-cms/tutorials/creating-a-property-editor/adding-server-side-validation.md b/14/umbraco-cms/tutorials/creating-a-property-editor/adding-server-side-validation.md index 197f8b3f3f0..58d17ac01bf 100644 --- a/14/umbraco-cms/tutorials/creating-a-property-editor/adding-server-side-validation.md +++ b/14/umbraco-cms/tutorials/creating-a-property-editor/adding-server-side-validation.md @@ -133,7 +133,7 @@ With the Data Editor in place, update the Property Editor `propertyEditorSchemaA } ``` -Restart Umbraco. Open the "Suggestions" Data Type: +Reload the backoffice and open the "Suggestions" Data Type: ![The Data Type with the new Data Editor registered](images/suggestion-editor-config_4.png) From b58eaf11d841d0e73b9d1b24dc8a375d7781ae3b Mon Sep 17 00:00:00 2001 From: jonat123 <54025331+jonat123@users.noreply.github.com> Date: Tue, 28 May 2024 09:19:38 +0200 Subject: [PATCH 2/3] Update 14/umbraco-cms/tutorials/creating-a-custom-dashboard/README.md --- 14/umbraco-cms/tutorials/creating-a-custom-dashboard/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/14/umbraco-cms/tutorials/creating-a-custom-dashboard/README.md b/14/umbraco-cms/tutorials/creating-a-custom-dashboard/README.md index b83f57a1ac9..8d6acf1d0a3 100644 --- a/14/umbraco-cms/tutorials/creating-a-custom-dashboard/README.md +++ b/14/umbraco-cms/tutorials/creating-a-custom-dashboard/README.md @@ -89,7 +89,7 @@ At each step, you will find a dropdown for `welcome-dashboard.element.ts`, `and For more information about the `umbraco-package.json` file, read the article [Package Manifest](../../extending/property-editors/package-manifest.md). For more information about the dashboard configurations read the [Dashboards](../../extending/dashboards.md) article. {% hint style="info" %} -The `umbraco-package.json` files are cached by the server. If you are running your site in development mode, the cache is short-lived (~10 seconds). In case changes to `umbraco-package.json` files are not reflected immediately, try reloading the backoffice a few seconds later. +The `umbraco-package.json` files are cached by the server. If you are running your site in development mode, the cache is short-lived (~10 seconds). If changes to `umbraco-package.json` files are not reflected immediately, try reloading the backoffice a few seconds later. When running the site in production mode, the cache is long-lived. You can read more about runtime modes in [this article](https://docs.umbraco.com/umbraco-cms/fundamentals/setup/server-setup/runtime-modes). {% endhint %} From 92fd5789164d50448f696063df9933bdfc0d9bc2 Mon Sep 17 00:00:00 2001 From: jonat123 <54025331+jonat123@users.noreply.github.com> Date: Tue, 28 May 2024 09:19:50 +0200 Subject: [PATCH 3/3] Update 14/umbraco-cms/tutorials/creating-a-custom-dashboard/README.md --- 14/umbraco-cms/tutorials/creating-a-custom-dashboard/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/14/umbraco-cms/tutorials/creating-a-custom-dashboard/README.md b/14/umbraco-cms/tutorials/creating-a-custom-dashboard/README.md index 8d6acf1d0a3..6a428e6817d 100644 --- a/14/umbraco-cms/tutorials/creating-a-custom-dashboard/README.md +++ b/14/umbraco-cms/tutorials/creating-a-custom-dashboard/README.md @@ -91,7 +91,7 @@ For more information about the `umbraco-package.json` file, read the article [Pa {% hint style="info" %} The `umbraco-package.json` files are cached by the server. If you are running your site in development mode, the cache is short-lived (~10 seconds). If changes to `umbraco-package.json` files are not reflected immediately, try reloading the backoffice a few seconds later. -When running the site in production mode, the cache is long-lived. You can read more about runtime modes in [this article](https://docs.umbraco.com/umbraco-cms/fundamentals/setup/server-setup/runtime-modes). +When running the site in production mode, the cache is long-lived. You can read more about runtime modes in the [Runtime Modes article](https://docs.umbraco.com/umbraco-cms/fundamentals/setup/server-setup/runtime-modes). {% endhint %} ## Creating the Dashboard Web Component