View Issue Details

IDProjectCategoryView StatusLast Update
0005827OXID eShop (all versions)4. ------ eShop Core -------public2014-07-24 10:04
Reporterleofonic Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version4.8.6 / 5.1.6 
Summary0005827: oxMaintenance is not executed by random visitor
DescriptionIn oxmaintenance.php, description is:
 * Maintenance task handler. Maintenance tasks are called periodically, by crontab
 * or by random visitor.

But in oxshopcontrol, only updateUpcomingPrices is called directly:

        startProfile('executeMaintenanceTasks');
        oxNew("oxarticlelist")->updateUpcomingPrices();
        stopProfile('executeMaintenanceTasks');
Steps To ReproduceWould be better if oxmaintenance::execute() would call oxmaintenance, and only if usecron is not set.

This way oxmaintenance could be extended for own maintenance tasks.

Schedule should not depend on type of call. Right now updateUpcomingPrices is forced if called by cron. It should be possible to call cron e.g. every 5 minutes and execute maintenance tasks if needed based on schedule. It would be very good if a possibility for own schedules would be implemented in standard.
TagsNo tags attached.
ThemeAzure
BrowserAll
PHP Versionany
Database Versionany

Activities

leofonic

2014-07-20 23:48

reporter   ~0010016

I mean: "would be better if *oxshopcontrol* would call oxmaintenance"

cesnauskast

2014-07-23 09:36

reporter   ~0010021

This is a feature request. Waiting for PO decision.

Also, we suggest:
For crontab usage - create as many cron*.php files as you need for now to be able to execute calls on different times. If it is not necessary, just extend oxMaintenance::execute() method.
For performance reasons we would not recommend to add more actions in shop control. It is better to use cron jobs. Update price function is more exception for system which cannot use cron jobs.
Sorry for “or by random visitor” comment, we will improve it.

leofonic

2014-07-23 11:02

reporter   ~0010022

OK i understand that it's not intended to add more tasks to random visitor, so from my point of view this bug can be closed.

Linas Kukulskis

2014-07-24 10:04

reporter   ~0010030

just changed comment