WordPress.org

Forums

How to update Widget-setting in Runtime? (for caching) (1 post)

  1. Ste-Bi
    Member
    Posted 3 years ago #

    Hi!
    I'm the developer of the 'AppStore' Plug-in. And I addet a 'dynamic' Widget in Version 2.0.
    The widget uses a RSS-Feed and now i would like to cache this feed. I'm trying to update a setting in the widget() function with
    $instance['feedUpdateTime'] = time();
    but this does not work, because I think, that this is just the active intance. How can I update this setting?
    Do I have to use the update($new_instance, $old_instance) function? How do I call this?

    regards
    Stephan

Topic Closed

This topic has been closed to new replies.

About this Topic