Jump to content

Dadog

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Dadog

  1. Thx, guys! Really nice feedback, I will go with the separate route!
  2. Is it possible to call LazyCron in a Process (Admin) module? I've built an XML importscript to import pages via het API. Everything is working fine. I wanted to automate this module and run it at a particular time e.g. once a day. I've implemented LazyCron in my module like so: class dataImport extends Process implements Module { public function init() { parent::init(); $this->addHook('LazyCron::everyMinute', $this, 'myFunc'); } public function myFunc() { Do some stuff ... } } To my understanding the Process module is only activated in the backend and not the frontend? So when LazyCron kicks in on the front-end, Process modules addHook are not included in the execution? This the behaviour that we see now ... the hooks are executed when someone is working in the module, but not on the frontend ... How do I fix this and is this even possible?
×
×
  • Create New...