WordPress.org

Ready to get started?Download WordPress

Forums

Tagregator
Freshness (7 posts)

  1. tayloroliphant
    Member
    Posted 7 months ago #

    Hi,

    Great plugin. Perhaps this is a stupid question, but is there a way to make tweets refresh faster? I checked it today and it wasn't updated for 20 hours or so.

    Thanks!

    http://wordpress.org/plugins/tagregator/

  2. Ian Dunn
    Member
    Plugin Author

    Posted 7 months ago #

    It only updates when someone is actually viewing the page. We may add a cron job in the future to constantly update, but I can't say when that will happen.

    In the mean time, you could setup a cron job to make a wp_remote_get() request to the page, or just leave a browser tab open on it.

  3. tayloroliphant
    Member
    Posted 7 months ago #

    You're the man. Thanks!

  4. tayloroliphant
    Member
    Posted 7 months ago #

    You know what would be sweet, I don't know if it's possible, but if the plugin would display a loading message and fetch the newest tweets as soon as a user opens the page--that seems a little better than cron to me, but you're a lot better at this than I am and I'm really just impressed the thing works as great as it does.

  5. Ian Dunn
    Member
    Plugin Author

    Posted 7 months ago #

    Huh, you're right. I should have put that in there from the beginning. I'll add it to the short list. Thanks for the suggestion :)

  6. tayloroliphant
    Member
    Posted 5 months ago #

    Hello agian. I've been trying to implement a solution for keeping things auto-updating using wp_cron via a cron manager plugin, no luck, and also in the way explained in this tutorial: http://imtheirwebguy.com/creating-an-autonomous-service-for-your-wordpress-plugin-using-wp-cron/ - no luck there either. Essentially I can't get wp_remote_get() to trigger the page refreshing even if I can get it successfully loaded in wp_cron. Also I've tried regular cron using curl and wget, no such luck there either.

    So I was curious if there were any updates or if anyone has been able get it working via wp_remote_get or curl? I could really use a verbose code example if one is available.

    $20 donation if I can get this thing figured out. :) -I'll probably donate either way eventually as it's an awesome plugin, but I thought I'd try my luck with a bribe. Thanks!

  7. Ian Dunn
    Member
    Plugin Author

    Posted 5 months ago #

    Doh, it just occurred to me that a request from a cron job won't trigger the JavaScript events to refresh the items.

    So, what you'd want to do is have a WP_Cron job call Tagregator::get_instance()->modules['TGGRShortcodeTagregator']->render_latest_media_items();

    BTW: It also will update immediately when a user visits the page now, rather than waiting 30 seconds.

Reply

You must log in to post.

About this Plugin

About this Topic