you can adapt this script.
Using variable you can make conditional soime part of the script
// Start loading script data that needs to be load always
// replace with first load statements
// check to identify if full reload is needed
// a full reload is needed 1 time a day
if today() > date(ReloadLastFull) or ReloadFullForce='Yes' then
// set the last partial reload
let ReloadLastPartial = LocalTime();
// exit point in case full reload is not neeeded
exit script when ReloadType='Partial'
// data that should be load only 1 time a day
// replace with second load statements
// set the variable to show how was the last reload
// set the variable to show when was the last full load
let ReloadLastFull = Localtime();