WordPress.org

Ready to get started?Download WordPress

Forums

HungryFEED
Really Confused About Coding (8 posts)

  1. JDanswers
    Member
    Posted 2 years ago #

    I uploaded HungryFEED, created cache folder and writeable CHMOD, and it pulls my feed. My questions are:

    1. How do I use the Templates in order to show the feed content? Where do I place the Template code so it shows the feed content on the Home page. All I get, using [hungryfeed url="http://www.medworm.com/rss/medicalfeeds/conditions/Acid-Reflux.xml"] is the title of the post: "Acid Reflux Latest Posts" and the "Read more..." link which, when clicked, goes to a category page that shows all the new feed items.

    2. How can I limit the number of posts that are fetched and published at one fetch? I would like to limit this to 5 posts, once a day (24 hours).

    3. How does HyngryFEED process the Cron operation and can this be edited to limit the number of Cron triggering to once a day so I don't overload my server? I have multiple blogs on which I want to run HungryFEED so the less queries the better.

    I have been using FeedWordPress plugin but my host has complained that it's resource heavy so I am hoping HF is a good alternative.

    Keep in mind I am not a coder but I am not a complete novice either. I can edit templates, HTML, and php files with proper coding examples to follow. I find the support articles and documentation a little too techie for me. I just can't figure it out without help in layman's language.

    I would even be willing to talk with someone about paying a fee for prompt resolution of these issues and solving any glitches that arise.

    http://wordpress.org/extend/plugins/hungryfeed/

  2. JDanswers
    Member
    Posted 2 years ago #

    Blog address is http://acidrefluxdisease.jdanswers.com/

    Update of my previous Support questions.

    1. Look at the home page under the thumbs and the sticky posts to see what it looks like now. I tried adding template="1" into the post page but nothing changes. The code is [hungryfeed url="http://www.medworm.com/rss/medicalfeeds/conditions/Acid-Reflux.xml" template="1"] as your video shows.

    3. I figured out the cron triggering question and have edited the Cache Timeout to slow down the number of feed queries.

    2. Still not resolved. I can't find an answer to limiting the number of posts that are fetched and published.

    Hanging in here until I get this to work.

    Jim

  3. Jason
    Member
    Plugin Author

    Posted 2 years ago #

    1. to use the template feature you just have to specify in your shortcode which template to use, for example [hungryfeed url="..." template="1"]

    2. I answered that in your other post

    3. There is no cron - hungryfeed doesn't have any automation. The feed is retrieved on demand when a user visits the page. Then it is cached for all subsequent visitors until the cache expires. You control the cache timeout in the settings page.

  4. JDanswers
    Member
    Posted 2 years ago #

    OK, Jason, I am beginning to understand some of this. Thanks for hanging in here with me.

    The template="1" addition apparently works when clicking on the Read More link. The page it links to shows all the posts. I simply cannot get the posts to show on the Home Page.

    I still don't see how to limit the number of posts that get published. Are you saying that number is controlled by the feed itself and cannot be controlled on my end?

    As for Crons: A visitor triggers the feed fetch and the data is cached and held for a time limit set in the cache timeout. The cache is replenished by the first visitor who arrives after the timeout. Since there is no automatic Cron built into HungryFEED, is the built-in wp-cron.php actually what is fetching the feed?

    If I set the Cache Timeout for 36000 seconds (10 hours), just for example, the feed will be fetched from the feed source only once in that 10 hours, and, if I have 50 visitors in that 10 hours, the feed data is fetched from the cache 50 times in that 10 hours, once for each visitor. Is this correct?

  5. Jason
    Member
    Plugin Author

    Posted 2 years ago #

    if you set the cache for 10 hours then your feed will be re-loaded once every 10 hours, regardless of whether 1 person or a 1,000 visit your site. i hope that helps to explain it better.

  6. JDanswers
    Member
    Posted 2 years ago #

    Sorry for my noobness about these tech issues. I am trying to determine how many times an attempt is made to fetch the feed from the feed source and how many times from the cache in that 10 hour period.

    Feed fetch = ? times in 10 hours right now.
    Cache fetch = ? times in 10 hours right now.

    I am concerned about server load as I run multiple blogs. I am considering disabling the wp-cron.php from automatically triggering when the blog loads. Instead, I want to trigger wp-cron.php on a set schedule with a Cron job created on my server to better control server load.

    I read about it here: http://wp.tutsplus.com/articles/insights-into-wp-cron-an-introduction-to-scheduling-tasks-in-wordpress/

    Thanks again and again!
    Jim

  7. Jason
    Member
    Plugin Author

    Posted 2 years ago #

    in 10 hours the feed would be fetched from the rss provider exactly one (1) time. see http://www.simplepie.org/wiki/faq/how_does_simplepie_s_caching_http_conditional_get_system_work

  8. JDanswers
    Member
    Posted 2 years ago #

    A "very simple" answer and an interesting link to more info. Thanks, Jason.

    I see now that SimplePie is a critical part of HungryFeed. I am learning. Not too bad for a 69 year old retired guy. LOL!

    Jim

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags