Disable BackgroundCleanupJob when previews are disabled #30793
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
bug
good first issue
Small tasks with clear documentation about how and in which place you need to fix things in.
needs info
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.
The text was updated successfully, but these errors were encountered: