Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Need to tick the checkbox 'Do not cache' on the context menu UI actions for dynamic evaluation (to prevent the condition expression from being cached) - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Need to tick the checkbox 'Do not cache' on the context menu UI actions for dynamic evaluation (to prevent the condition expression from being cached)
KB0785033

Need to tick the checkbox 'Do not cache' on the context menu UI actions for dynamic evaluation (to prevent the condition expression from being cached)


496 Views Last updated : Jul 24, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

Context Menu UI Actions that use a script includes in the 'Condition' will not get evaluated after the first time until we clear instance cache by performing /cache.do

Cause

All the context menu UI Actions get evaluated for the first time when the user logs in. Then the condition evaluation is stored in the expression cache. The next time during the same session (if the logged-in user do not have permissions to see the UI Action), simply refreshing the form/list will not affect the changes until administrators clear instance cache.

 

The reason is the system automatically stores the UI Action conditions in expression cache (instance cache) and doesn't re-evaluate every time the user refreshes the form/list.

Resolution

In order to prevent the Context Menu UI Actions from being cached, we can make use of the following:

  1. Open the Context Menu (sys_ui_context_menu) record for which you want the conditions to be evaluated every time the user refreshes the page.
  2. On the 'sys_ui_context_menu' record, click on Configure > Form Layout" and add the "Do not cache" field to the view, and check it
  3. Save the changes.

You should not be seeing this condition expression stored in the cache anymore. This will get evaluated always whenever the user refreshes the page.


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.