Re: D6 Cron mystery

Christian López Espínola <[email protected]>
Newsgroups gmane.comp.php.drupal.devel
Message-ID <CAJzC3e9MJMEZ-hB+5B0LcqaYrMMNwD2b-B0FAqE-_LgRVU3+SQ@mail.gmail.com>
Hi Jeff,

On Tue, Sep 27, 2011 at 7:37 PM,  <[email protected]> wrote:
> I have a module that hooks nodeapi and if an update has been performed on
> the correct content type, I create an XML file and transmit it.
> The problem is that the XML files were being created en masse, where
> normally an editor edits a single piece of content. The culprit has
> tentatively been identified as a cron run that updates each node with
> Facebook 'like' statistics, which performs a node save. Interestingly, some
> settings in the file end up being different...settings that should in no way
> be affected by what triggers the update, given that the node data used is
> not different in either case.
> I put the following line in the hook function:
>     if (variable_get('cron_semaphore', FALSE) || user_is_anonymous())
> return;
> I would think that a cron initiated trigger would fail for both conditions.
> It does not fail at all. I'm stuck!

The second condition depends on how do you execute cron.
Could you paste your "crontab -e"?

BTW, this should go into support lists, not development. See
http://drupal.org/mailing-lists


-- 
Christian López Espínola
Área de Proyectos

Emergya Consultoría
Tfno: +34 954 51 75 77
Fax: +34 954 51 64 73
www.emergya.es
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.