I have create a custom wordpress plugin where i am using wp ajax. In class's __construct i have an action (admin_footer) in order to use wp_enqueue_script and wp_localize_script following wp instructions
So the flow is something like php -> js -> and again php
Why I am doing that ? To avoid memory limit error. Here says something nice : "The solution above routes around PHP’s limitations by breaking a single large task into a number of smaller"
Everything works like a charm in backend!
My question is how i can manage this process to work with wp-cron? Is possible for wp-cron to work with js?
I tried wp_schedule_event with my custom hook without success (js never works).
Any ideas?
Regards