Forcing Drupal into Perpetual Cron Jobs

Something went screwy. That's the shortest explanation I can provide. To fix it, I had to run the Drupal Cron job hundreds of times until the queue drained.

Unfortunately, I wasn't interested in sitting at my computer for hours clicking the Run Cron button. So I inserted this little hack into my page. Its an absolute total hack, and very temporary, but gets the job done.

try
{
	var i = document.getElementById('system-cron-settings');
	if (i!=undefined) i.submit();
}
catch(e){}

Pretty simple stuff. It looks for the cron form, and if it finds it, the cron is submitted. So each time the page refreshes, it automatically resubmits.

AuthorInfo

- - - - -

Fatal error: Class CToolsCssCache contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (DrupalCacheInterface::__construct) in /home/content/e/x/t/ext237/html/modules/ctools/includes/css-cache.inc on line 52