WordPress.org

Ready to get started?Download WordPress

Forums

Recent Facebook Posts
[resolved] Auto Refresh Cache question (12 posts)

  1. atticus0
    Member
    Posted 8 months ago #

    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/

  2. Danny van Kooten
    Member
    Plugin Author

    Posted 8 months ago #

    Hi Atticus,

    Have a look at the last item of the 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');
  3. atticus0
    Member
    Posted 8 months ago #

    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!

  4. atticus0
    Member
    Posted 8 months ago #

    Also, this might be another stupid question, but does it matter where I input the snippet in my theme's functions.php file?

  5. Danny van Kooten
    Member
    Plugin Author

    Posted 8 months ago #

    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 on it! :)

  6. 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

    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.

  7. Danny van Kooten
    Member
    Plugin Author

    Posted 8 months ago #

    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. :)

  8. 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.

  9. atticus0
    Member
    Posted 8 months ago #

    Thank you again for your help, Danny!

    And for the record Jan Dembowski, I would have gave it a 5 star rating regardless. : p

  10. atticus0
    Member
    Posted 8 months ago #

    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

  11. Danny van Kooten
    Member
    Plugin Author

    Posted 8 months ago #

    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!

  12. atticus0
    Member
    Posted 8 months ago #

    Thanks a lot, worked perfectly! Appreciate the help!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.