hansfn wrote:First check if you have disabled the scheduler - check the advanced configuration: dont_run_scheduler. If you have disabled it, you probably had a cron job on the old server that ran "wget example.org/pivotx/scheduler.php" or similar. If you haven't disabled it, you have to check the server time.
PS! I remember that I changed scheduler.php on your site - commented out (or removed) the "cleanCache();" line. It's trivial to reapply that change after upgrading to PivotX 2.3.3.
Hello Hans,
First of all, thank you for your (always valuable) input.
"dont_run_scheduler" is on 1. Not sure but 1 means enabled right ? In this case it does not run ?
I digged in my emails for a while and found your emails from 12 months ago regarding this issue.
1) I have disabled the scheduler[1] - doesn't make sense that all of your
visitors try to run it. (It won't run for each visitor, but just
checking is wasting resources.) I suggest that you (or your hoster)
add a cron job that runs every 15 minute that loads
http://www.youramateurporn.com/pivotx/scheduler.php (Typically done with wget, curl or similar tools.)
The scheduler checks for timed publish which is important for you, and
does some additional cleaning up.
also in scheduler.php
// Here we call the functions that need to be run.
// Disablde cleanCache since it kills files that is still needed. (Added by hansfn, 2011.07.01.)
// cleanCache();
$PIVOTX['db']->checkTimedPublish();
$PIVOTX['pages']->checkTimedPublish();
if ($PIVOTX['config']->get('moblog_active')) {
$moblog = new Moblog();
$messages = $moblog->execute();
if (!empty($messages)) {
debug(implode("\n",$messages));
}
}
What do you advice in this case, best way is to ask hosting to add a cron to run scheduler again ?