-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Disable BackgroundCleanupJob when previews are disabled #30793
Copy link
Copy link
Closed
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmapbuggood first issueSmall tasks with clear documentation about how and in which place you need to fix things in.Small tasks with clear documentation about how and in which place you need to fix things in.needs info
Metadata
Metadata
Assignees
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmapbuggood first issueSmall tasks with clear documentation about how and in which place you need to fix things in.Small tasks with clear documentation about how and in which place you need to fix things in.needs info
Type
Fields
Give feedbackNo fields configured for issues without a type.
When disabling previews altogether, the job "OC\Preview\BackgroundCleanupJob" is still registered.
Now, it's ok that the job is there still but it shouldn't be performing any database queries.
A fix would add a check in it "run()" function to see if previews are enabled in config.php before proceeding.