Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Create Custom Cronjobs

Started by Milhouse van Houten 9 years ago · 2 replies · 920 views
9 years ago

Hello,

I would like to parse an external XML (not RSS or Atom) feed and automatically create pages from it.
My question is: how could I integrate this task in form of a cronjob into grav? Is it possible at all?

E.g. I am familiar with cron creation in the magento shop system. Magento has a single entry for cronjobs. It is one file that gets triggered by a cron setup every 5 minutes. Every coded task will then be delegated. Does grav have something similiar?

I figure I will need to create a plugin. But how can I create a "cronable" task inside this plugin?

Thank you.

9 years ago

Could schedule a python script that parses the external XML potentially.

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 76 7 hours ago
General · by pamtbaau, 13 hours ago
1 47 12 hours ago
General · by Andy Miller, 1 day ago
0 44 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago