Cron in plugins
complete
b
boazpoolman
Summary
Ability for cron tasks to be written in a plugin.
Why is it needed?
Say you have a twitter or instagram feed plugin, it would be handy to add a cron task directly in the plugin to fetch the feed every x hours e.g. Also I think it will open up room for more enhanced plugins to be written.
Suggested solution(s)
Use the same naming convention as the normal cron in the plugin.
So you would add a file: /plugin-name/config/functions/cron.js.
KiwiCoder
Derrick Mehaffy is this the latest documentation regarding the above? https://docs.strapi.io/dev-docs/api/plugins/server-api#cron
Or is there a more similar approach such sa the cron jobs you can create from within a /config folder in the root?
Derrick Mehaffy
complete
Cameron
You can do this it just wasn't documented until now https://docs.strapi.io/developer-docs/latest/developer-resources/plugin-api-reference/server.html#cron