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:
- Adding Widget form fields dynamically
- What is the correct way to build a widget using OOP
- 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
- 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
- Widget Admin – Form Submit Event?
- 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
- Input in plugin widget does not allow spaces
- Get draggable widgets on Edit Post page
- Dynamically creating classes for Widget API
- Widget options are not updated
- Why does my widget break other widgets?
- WordPress daily cron is executing more frequently than once a day
- CSS not affecting widget output
- Using a multiple element in widget form
- WP Cron being triggered but not working as expected
- wp_schedule_event() set daily, but processed every second
- Are there any official or unofficial guidelines for the styling of a widget?
- Create Widget or Enable Shortcodes in Sidebar
- Minimum Widget Width for Plugin Development
- Will I get an error if I try unscheduling a WP Cron scheduled task that wasn’t scheduled?
- Looking for a better way to initiate cron job
- How to create a wordpress widget that dynamically changes according to the page
- WordPress plugin cron working only if admin is logged in
- How to make a cronjob type plugin
- WordPress dynamic widget by location?
- 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
- 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]
- 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
- WP Cron as Fast as WordPress AJAX?
- Downloading Generated XML File
- wp_register_sidebar_widget in loop within a plugin?
- 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?
- How to specify widget order or css name via script?
- Call do_action() within WordPress cronjob
- Adding custom avatar field to comments
- Is it possible to add Custom Dashboard Widgets to Custom Admin Menu Page?