Don't run lateprocessor invalidate if the queue is empty

Created on 12 April 2023, over 1 year ago

Problem/Motivation

Since deploying the purge_processor_lateruntime module we're seeing an uptick in server response time, even when there are no items invalidate. We tracked this down to a status check that was being run on every request. As far as I can tell, there's no reason to run the `invalidate` method if there are no items to invalidate.

Steps to reproduce

Proposed resolution

Implement an early return if there are no items to invalidate.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dabblela

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024