Catalog Item User Criteria evaluating only once from the Service PortalIssue There is a scripted user criterion in a catalog item. It works the first time after saving it, but the second time even if the conditions are not satisfied it still shows the catalog item on the service portal. It works each time after updating the user criteria.CauseHere is an explanation of how user criteria cache works There are 2 caches User Criteria and their usage.User Criteria has no knowledge on where it would be used. It could catalog item, kb, portal and many more.The User Criteria are just groups of users.The User Criteria cache caches which user has access to which user criteria.There is another cache, USER_ITEMS_CACHE which caches as a user which items he has access to.When the user opens the catalog item for the first time, this cache is populated, and unless this cache is changed, it will continue to get the result from this cache.If this cache is empty, then it will go to User Criteria cache, get the active criteria for the user and validate the viewability of the item and cache that in USER_ITEMS_CACHE.User Criteria is not designed for a varying result from the script.From the design, it is assumed that the Access to a resource will not change in time.A user will either have access or won't have access and this result is cached for better performance. The script in the User Criteria will be evaluated as long as this User Criteria is not cached. Once the User Criteria is cached, it will always return the first value the script returned and will not evaluate the script anymore unless the cache is cleared. or the User Criteria record is changed.ResolutionUser criteria are not cached and don't need to run cache.do or login again to take effect of change of user criteria when setting the below 2 properties to true:- glide.cache.disabled.user_items_cacheglide.cache.disabled.criteria_cache