Skip request level caching of objects if there is no request

Description

If something is triggered in the background e.g. related to events and a page move, the execution does not run within a request at least based on the following stacktrace:

The ThreadLocal we are using is cleaned-up via a filter and in such a case this doesn't happen and the cached value stays until a next request is cleaning up the entry.

Maybe the best would be to avoid the caching if we are not running as part of a request.

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Labels

Original estimate

Time tracking

No time logged1d remaining

Components

Sprint

Fix versions

Affects versions

Backbone Issue Sync

Created March 31, 2016 at 11:53 AM
Updated March 15, 2024 at 10:10 AM
Resolved April 20, 2016 at 2:31 PM