Support » Plugin: Facebook for WooCommerce » wc_facebook_regenerate_feed every 15 minutes

  • Resolved goodereader

    (@goodereader)


    Is there a way we can have more control over the feed regenerating every 15 minutes? A couple months ago, we had over 87,000 completed logs, just from this feed. It ended up slowing down our site, because so many entries were appearing in our SQL database.

    I feel once per day would be enough for most merchants, its not like the average store is adding in hundreds of new products every 15 minutes.

    It would be nice to have a setting in the plugin that users can configure 15 mins/hourly/daily etc.

    Is this a possibility?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Marcus, SkyVerge Support

    (@marcusskyverge)

    Hi @goodereader,

    Thanks for reaching out. Happy to help you with this!

    The feed file is regenerated every 15 minutes to ensure that your product statuses (“in stock” vs “out of stock”) are updated in your Facebook catalog.

    If you’re interested in generating this file less frequently, we do have a snippet that you can add to your site that I’m happy to share. However, please be aware of a couple notes:

    • I’m afraid that customizations are not covered under our support policy, so implementing this directly or modifying it further isn’t something we can assist with.
    • Please be sure you know how to add custom code to your site. Personally, I like the free Code Snippets plugin method.

    You can view the snippet here:
    https://gist.github.com/3fae615408e8950ddae706a03f532db5#file-change-feed-file-generation-interval-php

    Thanks,
    Marcus

    Thread Starter goodereader

    (@goodereader)

    Thanks for the code. Do i put this in my themes functions.php file?

    Plugin Support Marcus, SkyVerge Support

    (@marcusskyverge)

    Hi @goodereader,

    You’re welcome! Yes, you can certainly put this in the functions.php of your child theme. Please do make sure that you are using a child theme in this case, since updating the theme would overwrite this otherwise.

    After applying this to my development site, I also noticed that you will need to head to the Action Scheduler and cancel the pending task. (I had to do this twice to get it to take hold.)

    Would you please give that a try and see if it works for you?

    Thanks,
    Marcus

    Thread Starter goodereader

    (@goodereader)

    Thanks that seemed to work, i cancelled the every 15 minte feed generation and now it only does it once a day, which is WAY better for my SQL. I appreciate you helping me with this, you are a fine man!

    Plugin Support Marcus, SkyVerge Support

    (@marcusskyverge)

    Hey @goodereader,

    Excellent, thanks so much for confirming that for me!

    I’m going to mark this as resolved but if you experience other issues or have further questions, please feel free to open a new thread to get in touch with our team.

    Cheers,
    Marcus

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘wc_facebook_regenerate_feed every 15 minutes’ is closed to new replies.