Allow generating preloader from cron/external link

Created on 7 April 2021, over 3 years ago
Updated 1 May 2023, over 1 year ago

Problem/Motivation

Right now the only way to generate a preloader is to access the admin dashboard, which isn't possible in some cases, we need the way to generate a preloader script from the script, to make it part of the deployment procedure or periodically update it by cron.

Proposed resolution

Add secured link like for Cron run that re-generating preloader script, it can be called from deployment script or from corn.

I've already done many tests with generating preloader from Drush, but it must be generated from FPM/mod_php process and not from CLI because it creates the wrong preloader which includes classes added in CLI mode only and not adding any really needed, like Request/Response classes.

Remaining tasks

Add tests. Maybe add link to Reports/Status dashboard.

User interface changes

On settings form add permanent link for external run.

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine zviryatko

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024