Orchard Core Gallery, Orchard Core 2.0.2 - This week in Orchard (04/10/2024)

Adding a Create & Setup button to the create tenant view, and using expiry-sliding in the notification cache are the topics for this week. Check out our post for a demo of the upcoming Orchard Core Gallery site and some words about the recent 2.0.2 version of Orchard Core!

Orchard Core updates

Add the Create & Setup button to the create tenant view

When creating a new tenant, it is helpful to be able to create and set up the tenant at the same time. In addition to the Create button, now we have a Create & Setup button which will take you to the setup screen after a tenant was created.

To see this in action, you have to make sure that the Tenants feature is enabled under Configuration -> Features. After you will see a new Multi-Tenancy option in the menu with one sub-menu item: Tenants. Choose this one and hit the Add Tenant button. Here, you can see the new Create & Setup button between the Create and Cancel ones.

Cache top-unread notifications in the navbar for better performance

Use Expiry-sliding in the notification cache

Last week, we talked about caching the top unread notifications in the navbar for better performance. In the meantime, this feature has been improved by getting rid of the CacheDurationInSeconds option (which caches the top unread user notifications for performance optimization), and the community introduced the AbsoluteCacheExpirationSeconds and SlidingCacheExpirationSeconds options.

User Expiry-sliding in notification cache

  • AbsoluteCacheExpirationSeconds: Specifies the absolute maximum duration, in seconds, for which the top unread user notifications are cached when caching is enabled. A value of 0 does not disable caching but indicates that there is no fixed expiration time for the cache. You can set this value to define a maximum lifespan for the cached data before it is invalidated.
  • SlidingCacheExpirationSeconds: Gets or sets how long a cache entry can be inactive (e.g., not accessed) before it will be removed. This will not extend the entry lifetime beyond the absolute expiration (if set). To disable sliding expiration, you can set this value to 0.

Check out the release notes of Orchard Core 2.0.0 to learn more about the improvements to the Notifications module!

Demos

Orchard Core Gallery

In this demo, we will check out the upcoming Orchard Core Gallery, which is a website allowing Orchard Core package owners to submit their modules and their themes. In the video, you can see some examples of how the listing would work on this site. You can also see which properties you have to set to create a new module or a theme for this site.

Orchard Core Gallery

Head to YouTube to check out how this site will work!

News from the community

Orchard Core 2.0.2

The community recently released the 2.0.2 version of Orchard Core which includes critical bug fixes to enhance stability and performance. You may notice that we haven't written about Orchard Core 2.0.1. The reason for that is Orchard Core 2.0.1 contains some features that were included in the release by mistake. You may have to re-enable the User Registration feature if you installed version 2.0.1 and enabled External Authentication. To see the whole list of changes, head to the release notes of the current version.

Orchard Core 2.0.2

Orchard Core is available as a NuGet package which you can easily add to your ASP.NET Core solution. Here's how you can get started with Orchard Core.

Orchard Dojo Newsletter

Lombiq's Orchard Dojo Newsletter has 469 subscribers! We have started this newsletter to inform the community around Orchard of the latest news about the platform. By subscribing to this newsletter, you will get an e-mail whenever a new post is published to Orchard Dojo, including This week in Orchard of course.

Do you know of other Orchard enthusiasts who would like to read our weekly articles? Tell them to subscribe here!

If you are interested in more news about Orchard and the details of the topics above, don't forget to check out the recording of this Orchard meeting!