Add option to select whether to delete the already expired tokens in each cron run

Created on 18 July 2023, over 1 year ago
Updated 13 September 2023, about 1 year ago

Problem/Motivation

Currently, expired tokens will be deleted in each cron regardless if the user wants it or not. Make an option in the settings form to give the control to the user.

Proposed resolution

  1. Create a checkbox in the settings form, in the general tab.
    • The checkbox must be called `Delete expired tokens`.
    • The description must be `If selected, the tokens that have been used or whose timestamp has expired will be deleted in each cron run`.
    • It must default to FALSE.
    • The field must be called `delete_expired_tokens`
  2. Add the default value into the settings YML file
  3. Check the value in the cron hook
Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇷Costa Rica robert-arias

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

Comments & Activities

Production build 0.71.5 2024