I am working Flow-Flow Lite pluggin to get facebook and instagram data. How do I automate an existing javascript function in the wordpress pluggin so that it runs every 24 hours? right now it's a manual process to clear the feed cache which needs to be done every 24-48 hours.
the path to the pluggin is:
wp-content/plugins/flow-flow-social-streams/js/admin.js
and the function near line 4118, as of the date of this post, looks like this:
resetFeedCache: function (e) {
var $t = $(e.target);
var uid = $t.closest('[data-uid]').attr('data-uid');
var changed = this.model.get('feeds_changed');
var feeds = this.model.get('feeds');
changed[ uid ] = _.clone( feeds[ uid ] );
changed[ uid ][ 'state' ] = 'reset_cache';
this.saveViaAjax();
},
I am also open to suggestions for well maintained automation plugins.