This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

carl0s
carl0s

Hi. I have written a plugin/component. It retrieves external data via JSON, and caches. I want to use the scheduler to do cache-refreshes on the hour. Can I get the scheduler part of the PluginBase to call a function that is in the MyPlugin.php ? I know I could use exec(curl) or something but I am just wondering how I can integrate the scheduler part into the plugin in a more clean way, maybe so that the scheduler part picks up on some definitions or variables within the component ?

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.