I would suggest looking at using transients for your data.
Using transients would also take care of needing to use cron to update the data.
Transients are an under utilised function of WordPress and can save considerable loads on resources as sites get busier.
Vee
Related Posts:
- Custom Widget function in Plugin not working?
- Adding Widget form fields dynamically
- What is the correct way to build a widget using OOP
- Which action for triggering cron “wp”or “init”?
- Widget development – Drop down options won’t save
- Calling the widget id of a mult-instance widget from inside the widget?
- Is There A Hook To Process The Content Of The Text Widget?
- wp_schedule_event in a class
- WP Cron – Run Cron after evey 15 minutes at a specific time for the next three hours
- Add content to widget title in admin area within the widget?
- Has anyone managed to integrate the wp_editor inside a widget?
- Using wp_cron with custom time interval and the register activation hook
- WordPress scheduled task is called but not executed
- Problem creating cron job wordpress
- How Do I Make WordPress Run an Event Every Day?
- How can I change the frequency of a scheduled event?
- Hourly WP schedule, do I need at least 1 visitor hourly?
- WP Cron doesn’t save or in post body
- Help adding image upload functionality to widget
- Using preg_replace to clean widget output HTML
- Edit the output of wp_widget_rss_output()
- Script to remove all inactive widgets?
- Possible to preset a widget’s contents via a plugin script?
- Multiple entries in get_option results? or why is _multiwidget set to 1?
- How to add multiple copies of a widget from “available widgets”
- Install widget on plugin activation
- Using Ajax call in jQuery doesn’t work in widget
- Is there any background process that I can run from plugin without depending on page hits on a website without affecting page-load speed?
- WordPress cron running twice
- WordPress select dropdown list in widget
- Using $wpdb object in a widget
- Is there a need to do apply_filter(‘widget_title’, $instance[‘title’]) or any other ‘widget_xxx’ filters?
- Dynamic content in a widget
- How to pass custom options from widget form to widget update callback?
- Broken markup when using the_excerpt() in a widget?
- Should I ask my Twitter plugin users to create their own Twitter App and API Keys to use my plugin?
- Tips for targeting widget dragable for WP Pointer on widgets.php page
- How to create custom field in worpdress default widgets?
- Scheduling a task using class methods
- PHP 7 – Class Method Compatibility Issue
- Widget Admin – Form Submit Event?
- How to save WP widget instances and options
- What is minimum time interval for which a cron be scheduled?
- Will cron job run if page loaded is being served from cache?
- Can I individually style items in the backend widget list?
- Sidebar widget to show popular post not working?
- Widget update function not saving values
- Add custom element ID depending where the widget place is, sidebar or footer
- Use wp_set_post_terms() instead of wp_insert_post()
- Customizer: widget-synced triggers twice
- Programmatically detect if wp-cron is disabled?
- Add a class to a dynamic sidebar’s wrapper
- How to schedule a cron job in plugin without waiting for page load request?
- Widget is to be compatible with all themes
- How to perform a heavy and long process in cron jobs?
- Widget Dropdown doesn’t working
- How do I get the sub categories of the parent when in a sub category?
- How to limit number of number of categories displayed by categories widget
- WordPress dynamic widget by location?
- Can / should a widget plugin define its own Widget Area?
- How to exclude categories from get_categories() select list inside a widget admin panel
- Widget internal hooks and functions
- Modify code for functions.php with specific twitter user url and hashtags
- My plugin creates custom widgets, How can I programatically add them to existing sidebar widget areas?
- How to show multiple instances of the WP125 Widget?
- wp_schedule_single_event is set correctly but sometimes not fired
- Console errors in 6.0-RC1 Widget screen
- Error code when migrate
- How does update method in Widget class saves $instance array from Select tag?
- How to Run Plugin on Server Without Web Browser
- Quick Draft widget (dashboard.php) using custom post_type
- Uncaught Error: Call to undefined function wp_get_current_user() in
- Load script on frontend from widget plugin
- Can’t get wpColorPicker to work in a widget
- If user is logged-in display/hide widgets ( siteorigine) [closed]
- Set widget icon in Customizer?
- Plugin with functions inside a class & how to trigger WP CRON
- Custom recurrence not working / Wp Cron event
- How and when would I implement some code which would take data from one part of the Db and put it in another?
- How to embed or integrated a custom WordPress Widget into the theme?
- Widget won’t be activated
- Dynamic sidebar areas not working on the Theme Customizer
- WP Cron as Fast as WordPress AJAX?
- Downloading Generated XML File
- wp_register_sidebar_widget in loop within a plugin?
- What is the use of wp_schedule_event hook?
- grouping my widgets wordpress
- Get fields of a widget
- Can wp_schedule_single_event be used to run background proccess?
- How do I create Widget within plugin that uses its own class?
- Best practice to include custom user styles in widgets
- How to specify widget order or css name via script?
- Call do_action() within WordPress cronjob
- Running one-off cron jobs when WP_DISABLE_CRON is true: can I hit /wp-cron.php?
- Adding custom avatar field to comments
- Is it possible to add Custom Dashboard Widgets to Custom Admin Menu Page?
- wp cron does not run when i am not logged in to wp admin
- WordPress Cron Job not importing products
- How do I cause plugin patterns to appear in the widget areas?
- Weekly cron is either missing the schedule or triggered too many times on Fridays