Authoring performance issues due to the Script cache cleanup


Description

When some content items contain fields with the Rules field type, content authors can experience slowness with the following operations:

This issue generates log entries such as:

INFO  Creating script with key web5862787EDD1B45559C1C4EFAD12AFD51
INFO  Scripts in cache: 1
INFO  Creating script with key web6826A27606EA4046826EE30FD2E89327
INFO  Scripts in cache: 2
INFO  Cleared script cache

When Sitecore performs these actions on each item:saved event for items containing at least one field with the Rules field type, the script cache is cleared and updated scripts are compiled and added into the script cache.

Solution

To resolve the issue, consider the following options: