Title: Auto Refresh Cache question
Last modified: August 21, 2016

---

# Auto Refresh Cache question

 *  Resolved [atticus0](https://wordpress.org/support/users/atticus0livecom/)
 * (@atticus0livecom)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/auto-refresh-cache-question/)
 * Danny van Kooten,
 * First off, thank you for this great facebook plugin! I have tried using a couple
   others, but none of them are as reliable as yours and do exactly what I want 
   it to do for my website.
 * My question is: Is there a way to change the auto refresh cache time? I noticed
   that when I make a post on my facebook page, it can take a couple hours before
   it is replicated/posted on my wordpress website. The same applies to people who
   like/comment on facebook posts, it usually will take awhile before the website
   refreshes it.
 * I know that you can manually hit the “renew facebook posts” button in the wordpress
   admin, but I was wondering if there was a way to change the time where it would
   automatically refresh sooner.
 * Thank you again for your plugin, and I will be donating through your website 
   to show my appreciation!
 * [http://wordpress.org/plugins/recent-facebook-posts/](http://wordpress.org/plugins/recent-facebook-posts/)

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

 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/auto-refresh-cache-question/#post-4297786)
 * Hi Atticus,
 * Have a look at the last item of the [FAQ](http://wordpress.org/plugins/recent-facebook-posts/faq/).
   🙂 It’s a snippet you can add to your theme its `functions.php` file.
 *     ```
       function my_rfbp_cache_time($time)
       {
           return 600; // 10 minutes
       }
   
       add_filter('rfbp_cache_time', 'my_rfbp_cache_time');
       ```
   
 *  Thread Starter [atticus0](https://wordpress.org/support/users/atticus0livecom/)
 * (@atticus0livecom)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/auto-refresh-cache-question/#post-4297801)
 * Thanks so much! I thought I reviewed all the FAQ, but I guess I didn’t read far
   enough down the page! Sorry for the trouble and repetitive question.
 * Once again, thanks for your work and keep programming! Look forward to using 
   your other plugins!
 *  Thread Starter [atticus0](https://wordpress.org/support/users/atticus0livecom/)
 * (@atticus0livecom)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/auto-refresh-cache-question/#post-4297809)
 * Also, this might be another stupid question, but does it matter where I input
   the snippet in my theme’s functions.php file?
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/auto-refresh-cache-question/#post-4297844)
 * Hi Atticus,
 * No worries!
 * Also, it doesn’t really matter where you put the snippet in your functions.php.
   It would be wise to group filters like this together in the file, to make the
   code more maintainable in the long run.
 * Glad you like my plugin, would really appreciate [you leaving a review](http://wordpress.org/support/view/plugin-reviews/recent-facebook-posts#postform)
   on it! 🙂
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [12 years, 6 months ago](https://wordpress.org/support/topic/auto-refresh-cache-question/#post-4297845)
 * Danny? Please do not leave that review link with the 5 star filter on it like
   this.
 * [http://wordpress.org/support/view/plugin-reviews/mailchimp-for-wp?rate=5#postform](http://wordpress.org/support/view/plugin-reviews/mailchimp-for-wp?rate=5#postform)
 * That’s not necessary and really gives the wrong impression. I’ve corrected the
   link you’ve left and I am sure you will get good reviews without filtering out
   the one’s you don’t like.
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/auto-refresh-cache-question/#post-4297849)
 * Sorry Jan, didn’t know it was against the forum rules or giving off a bad impression
   to some. Just want to make it as easy as possible to leave a review.
 * I changed the link again to point to the correct plugin (Recent Facebook Posts)
   and at least scroll down to the review form as some users don’t know where to
   find it. 🙂
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [12 years, 6 months ago](https://wordpress.org/support/topic/auto-refresh-cache-question/#post-4297850)
 * > Sorry Jan, didn’t know it was against the forum rules.
 * Rules? We have rules? Why didn’t someone tell me that?
 * 😉
 * The `#postform` is fine (I often do the same thing for the same reason) but the
   filter is not necessary and really gives the wrong impression.
 * I mean, you just helped out a grateful user and I’m sure if Atticus leaves a 
   review then it will be a positive one. I would.
 *  Thread Starter [atticus0](https://wordpress.org/support/users/atticus0livecom/)
 * (@atticus0livecom)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/auto-refresh-cache-question/#post-4297863)
 * Thank you again for your help, Danny!
 * And for the record Jan Dembowski, I would have gave it a 5 star rating regardless.:
   p
 *  Thread Starter [atticus0](https://wordpress.org/support/users/atticus0livecom/)
 * (@atticus0livecom)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/auto-refresh-cache-question/#post-4297883)
 * Danny,
 * I seem to be having a little probably on my part on putting the snippet code 
   in the right place. To clarify, is this where I’m suppose to add it:
 * **Wp-Admin** >> **Appearance **>> **Editor **>> **Theme Functions** **_(functions.
   php)_** >> **Then insert the function snippet there?**
 * I am a relatively new Word Press user and only have been using it for a website
   I run for a business, but have intermediate knowledge of php. I’ve always made
   websites using php coding, and only using photoshop and notepad to develop a 
   website. Still trying to learn all the in’s and out’s of Word Press.
 * Sorry if this question is pretty basic. I realize this is a free plugin, and 
   greatly appreciate your support despite that. Thank you
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/auto-refresh-cache-question/#post-4297914)
 * Hi Atticus,
 * Yes, anywhere in that file will do but to make it easier I would just add it 
   at the top or at the end of the file. 🙂 There are multiple ways to edit this
   file.
 * 1. WP Admin > _Appearance _> _Editor _> _Theme functions_ (`functions.php`) >
   > –insert at top or bottom–
    2. Use a FTP program like FileZilla and browse to`/
   wp-content/themes/your-theme/functions.php`, edit it and insert the snippet at
   the top or bottom.
 * Hope that helps, good luck!
 *  Thread Starter [atticus0](https://wordpress.org/support/users/atticus0livecom/)
 * (@atticus0livecom)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/auto-refresh-cache-question/#post-4297973)
 * Thanks a lot, worked perfectly! Appreciate the help!

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

The topic ‘Auto Refresh Cache question’ is closed to new replies.

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

 * 11 replies
 * 3 participants
 * Last reply from: [atticus0](https://wordpress.org/support/users/atticus0livecom/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/auto-refresh-cache-question/#post-4297973)
 * Status: resolved