Title: Plugin does not dynamically update
Last modified: August 20, 2016

---

# Plugin does not dynamically update

 *  Resolved [einfohound](https://wordpress.org/support/users/einfohound/)
 * (@einfohound)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-does-not-dynamically-update/)
 * I have installed plugin and set it up, but when I publish a new post, what is
   displayed in the widget does not update. If I go into the widget are and just“
   Save” the widget again, the new post will show.
 * The same applies to any changes that might have been made to existing posts. 
   The updates do not show in the widget area unless I go save it again.
 * [http://wordpress.org/extend/plugins/recent-posts-widget-extended/](http://wordpress.org/extend/plugins/recent-posts-widget-extended/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [satrya](https://wordpress.org/support/users/satrya/)
 * (@satrya)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-does-not-dynamically-update/#post-3354992)
 * Hello,
 * Yes it’s normal because the plugin uses custom cache, it will expired in 12 hours
   🙂
 *  [bwhontwerpers](https://wordpress.org/support/users/bwhontwerpers/)
 * (@bwhontwerpers)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-does-not-dynamically-update/#post-3355280)
 * Is there any way we can modify this cache expiration timeout?
 *  Plugin Author [satrya](https://wordpress.org/support/users/satrya/)
 * (@satrya)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-does-not-dynamically-update/#post-3355282)
 * [@bwhontwerpers](https://wordpress.org/support/users/bwhontwerpers/) please open
   new thread. Actually you can’t change the cache time, you only need to re-save
   the widget and the cache will removed
 *  [alby270](https://wordpress.org/support/users/alby270/)
 * (@alby270)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-does-not-dynamically-update/#post-3355283)
 * That’s kind of tedious to have to re-save the widget every time in order for 
   it to refresh itself just so it shows the most recent post…
 *  Thread Starter [einfohound](https://wordpress.org/support/users/einfohound/)
 * (@einfohound)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-does-not-dynamically-update/#post-3355284)
 * You don’t have to…it will dynamically update itself every 12 hours. It is not
   a big deal.
 *  [artgeek](https://wordpress.org/support/users/artgeek/)
 * (@artgeek)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-does-not-dynamically-update/#post-3355288)
 * Running into this same issue; a 12-hour cache is actually a big deal for sites
   that update periodically throughout the day.
 *  Plugin Author [satrya](https://wordpress.org/support/users/satrya/)
 * (@satrya)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-does-not-dynamically-update/#post-3355289)
 * I’m sorry, but please read the descriptions once again.
 * > The recent posts widget extended uses Transients API for delivering cached 
   > to optimize your site performance when used the widget.
 * The cache is just to optimize your site. Maybe in the next release, I’ll provide
   an input box to set up the cache time.
 *  [ACarlsson](https://wordpress.org/support/users/acarlsson/)
 * (@acarlsson)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-does-not-dynamically-update/#post-3355293)
 * If anyone want to skip the cache thing you can do like me.
 * In the plugin folder on line 52 in the file includes/widget-recent-posts-extended.
   php
 * replace this
 *     ```
       if ( false === ( $rpwewidget = get_transient( 'rpwewidget_' . $widget_id ) ) ) {
   
       			$args = array(
       				'numberposts' => $limit,
       				'cat' => $cat,
       				'post_type' => $post_type
       			);
   
       		    $rpwewidget = get_posts( $args );
   
       		    set_transient( 'rpwewidget_' . $widget_id, $rpwewidget, 60*60*12 );
   
       		} ?>
       ```
   
 * with this
 *     ```
       /*
       		if ( false === ( $rpwewidget = get_transient( 'rpwewidget_' . $widget_id ) ) ) {
       		*/
       			$args = array(
       				'numberposts' => $limit,
       				'cat' => $cat,
       				'post_type' => $post_type
       			);
   
       		    $rpwewidget = get_posts( $args );
       		/*
       		    set_transient( 'rpwewidget_' . $widget_id, $rpwewidget, 60*60*12 );
   
       		}
       		*/
       		?>
       ```
   
 *  [carrie@wack.co.za](https://wordpress.org/support/users/carriewackcoza/)
 * (@carriewackcoza)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-does-not-dynamically-update/#post-3355295)
 * Thank you ACarlsson! Just what I needed. 🙂
 *  [artgeek](https://wordpress.org/support/users/artgeek/)
 * (@artgeek)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-does-not-dynamically-update/#post-3355296)
 * Brava, ACarlsson. I had actually just edited down the time of the cache, but 
   I think this is actually a better solution.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Plugin does not dynamically update’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/recent-posts-widget-extended_3384ca.
   svg)
 * [Recent Posts Widget Extended](https://wordpress.org/plugins/recent-posts-widget-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/recent-posts-widget-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/recent-posts-widget-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/recent-posts-widget-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/recent-posts-widget-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/recent-posts-widget-extended/reviews/)

 * 10 replies
 * 7 participants
 * Last reply from: [artgeek](https://wordpress.org/support/users/artgeek/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-does-not-dynamically-update/#post-3355296)
 * Status: resolved