• Resolved jayjay34

    (@jayjay34)


    Hello,

    Thx for this awesome plugin !

    I only have a small issue, I would like the feed to be updated every 5 minutes.

    So I put this in my shortcode :
    cache_unit=”5″ cache_duration=”minutes”

    But the feed is not refreshed every 5 minutes.

    Is it normal ?
    Do I need to change something with the Time Zone in my WP configuration ?

    My full shortcode :
    [efb_feed fanpage_id=746322182179240 skin_id=1072 post_limit=”15″ cache_unit=”5″ cache_duration=”minutes »]
    Thx in advance.

    • This topic was modified 6 years ago by jayjay34.
    • This topic was modified 6 years ago by jayjay34.
    • This topic was modified 6 years ago by jayjay34.
    • This topic was modified 6 years ago by jayjay34.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author maltathemes

    (@maltathemes)

    Hi there,

    Please note that, I don’t recommend that short time for the cache. It should be minimum one hour otherwise it defeat the purpose.

    Regarding the feed not being updated after the interval.

    Please note, I use WP Cron which relies on the site visits. You can find more about it here -> https://developer.wordpress.org/plugins/cron/understanding-wp-cron-scheduling/

    Also, to view the scheduled cron jobs on your site, you can use the Crontrol WordPress plugin -> https://wordpress.org/plugins/wp-crontrol/

    As you know WP Cron relies on-page/site visits, which means it is not 100% accurate even on the high traffic websites. If you are looking for a real cron or your feed is not being pulled up regularly that means, it is not working properly. In this case, you should disable WP Cron and use the system cron job (you can ask your host to configure it) or alternately a third-party service like Easycron. You can find more on how to use Easycron here -> https://www.easycron.com/cron-job-tutorials/how-to-set-up-cron-job-for-wordpress

    Take care!

    Thread Starter jayjay34

    (@jayjay34)

    Thx for your answer.

    Actually, a new post was published 6 hours ago and the post is not available in the feed.

    I don’t understand why.

    Thread Starter jayjay34

    (@jayjay34)

    I remove the post limit of 15 and the post is now in the feed…

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

The topic ‘Issue with the refresh cache’ is closed to new replies.