Hi @oxidigital ,
That’s strange!
Can you please create a support ticket here: https://wpdeveloper.net/support/new-ticket/
Our Support Team will get back to you and reply you there.
I also have the issue. It fills up our drive with .min.js, and we’ve notified you of this before in other tickets here.
@oxydigital, you can delete them as they’re cache files. Another user has 20gb+ on the drive.
Heres a fix, but you want to delete it when they release the update.
/**
* Delete the mad plugins files!
*/
function myprefix_custom_cron_schedule($schedules) {
$schedules['every_six_hours'] = array(
'interval' => 21600, // Every 6 hours
'display' => __('Every 6 hours'),
);
return $schedules;
}
add_filter('cron_schedules', 'myprefix_custom_cron_schedule');
//Schedule an action if it's not already scheduled
if(!wp_next_scheduled('myprefix_cron_hook')) {
wp_schedule_event(time(), 'every_six_hours', 'myprefix_cron_hook');
}
///Hook into that action that'll fire every six hours
//add_action( 'myprefix_cron_hook', 'myprefix_cron_function' );
//create your function, that runs on cron
function myprefix_cron_function() {
//your function...
$files = glob( ABSPATH . '/wp-content/uploads/essential-addons-elementor/*'); // get all file names
foreach($files as $file) { // iterate files
if(is_file($file)) {
unlink($file);
} // delete file
}
}
It deletes all the files every 6 hours.
-
This reply was modified 3 years, 6 months ago by Michael.
@mgparisi Moderator here:
Please start your own topics. It gets confusing for support volunteers when you jump in on someone else’s.
Plugin Author
Rafin
(@rafinkhan)
@mgparisi @oxidigital,
Hi, there. We have just released a new version of Essential Addons Free 4.3.0 and tweaked our Asset Generator method a bit. Please update to the latest version and then regenerate assets from both Elementor -> Tools and Essential Addons -> Tools. Hopefully, your issue will be resolved.
Thank you!
-
This reply was modified 3 years, 6 months ago by Rafin.