Umbraco-CMS icon indicating copy to clipboard operation
Umbraco-CMS copied to clipboard

V15: Refresh caches on load balanced environments

Open nikolajlauridsen opened this issue 4 months ago • 1 comments

This fixes #17263

Separates updating the memory cache and database cache into two separate methods.

This is because when load balancing only the publisher should update the database cache, however, all subscribers must update their memory cache.

The memory cache is updated when:

  • The content/media itself changes
  • The content/media type changes
  • A datatype the content/media type uses changes

This also adds new named options for the documents and media, allowing you to configure the local memory cache duration, the remote cache duration and the seed cache duration for documents and media separately using named options under Umbraco:CMS:Cache:Entry::

  "Umbraco": {
    "CMS": {
      "Cache": {
        "Entry": {
          "Document": {
            "LocalCacheDuration": "2.00:00:00",
            "RemoteCacheDuration": "100.00:00:00",
            "SeedCacheDuration": "200.00:00:00"
          },
          "Media": {
            "LocalCacheDuration": "50.00:00:00",
            "RemoteCacheDuration": "150.00:00:00",
            "SeedCacheDuration": "250.00:00:00"
          }
        }
      },
{...}

nikolajlauridsen avatar Oct 17 '24 08:10 nikolajlauridsen