Support » Plugin: Facebook for WooCommerce » wc_facebook_regenerate_feed creates backlog of other scheduled actions

  • Resolved mgz069

    (@mgz069)


    The plug-in works great in terms of syncing with FB Shop, pixel etc.

    But it creates a backlog of other scheduled actions.

    This plugin runs every 15 minutes and other tasks get stacked up.

    The wc_facebook_regenerate_feed eventually fails but its “newer” versions are already waiting in backlog along with the other tasks.

    Why does it have to regenerate so often?

    We only add a couple of products per week.

    It should also sync the new items except when you click “Full Sync”

    Also we get enormous error logs every day!!

    e.g.

    `05-17-2021 @ 09:20:12 – Request
    Request
    method: POST
    uri: https://graph.facebook.com/v9.0/254615535234399/events
    user-agent: Facebook-for-WooCommerce/2.4.1 (WooCommerce/5.3.0; WordPress/5.7.2)
    headers: Array
    (
    [Authorization] => ****************************************************************************************************************************************************************************************************************************
    [content-type] => application/json
    [accept] => application/json
    )
    body: {“data”:[{“action_source”:”website”,”event_time”:1621232411,”event_id”:”ac26a5fb-eb93-487a-a34c-1b9468663f56″,”event_source_url”:”https:\/\/trendscyprus.com\/Products\/makeup\/nails\/slip-dress\/”,”custom_data”:{“content_name”:”ESSIE 1101Gc Slip Dress”,”content_ids”:”[\”884486342744_13858\”]”,”content_type”:”product”,”contents”:”[{\”id\”:\”884486342744_13858\”,\”quantity\”:1}]”,”content_category”:”NAILS”,”value”:”13″,”currency”:”EUR”},”user_data”:{“client_ip_address”:”192.88.134.19″,”client_user_agent”:”Mozilla\/5.0 (compatible; bingbot\/2.0; +http:\/\/www.bing.com\/bingbot.htm)”,”fbc”:””,”fbp”:””},”event_name”:”ViewContent”}],”partner_agent”:”woocommerce-5.3.0-2.4.1″}
    duration: 0.98662s

    05-17-2021 @ 09:20:12 – Response
    Response
    code: 200
    message: OK
    headers: Array
    (
    [x-ad-account-usage] => {“acc_id_util_pct”:0}
    [expires] => Sat, 01 Jan 2000 00:00:00 GMT
    [content-type] => application/json
    [facebook-api-version] => v9.0
    [x-fb-request-id] => ARYQPFOHMaILbYuh8q3awAa
    [strict-transport-security] => max-age=15552000; preload
    [x-fb-trace-id] => FtR6cxbIrdZ
    [x-fb-rev] => 1003800113
    [cache-control] => private, no-cache, no-store, must-revalidate
    [vary] => Origin
    [pragma] => no-cache
    [x-app-usage] => {“call_count”:22,”total_cputime”:0,”total_time”:3}
    [x-fb-rlafr] => 0
    [access-control-allow-origin] => *
    [x-fb-debug] => UEl5yTpiuW3M7cYP1ea8tYisJvPBerTkvRs8AniIVyZLNgmy3l3EIr5+Y4EgPP35UpDsNErvyY8Yu+hEE0shkQ==
    [date] => Mon, 17 May 2021 06:20:17 GMT
    [priority] => u=3,i
    [alt-svc] => h3-29=”:443″; ma=3600,h3-27=”:443″; ma=3600
    [content-length] => 74
    )
    body: {“events_received”:1,”messages”:[],”fbtrace_id”:”ARYQPFOHMaILbYuh8q3awAa”}

    05-17-2021 @ 09:20:31 – Request
    Request
    method: POST
    uri: https://graph.facebook.com/v9.0/254615535234399/events
    user-agent: Facebook-for-WooCommerce/2.4.1 (WooCommerce/5.3.0; WordPress/5.7.2)
    headers: Array
    (`

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Joao D – a11n

    (@johnlud)

    Hi there,

    We have seen only a few occurrences of this error with merchants with a large number of products and variants, where the PHP Time Limit is not long enough for the file generation to complete. Can you increase your PHP Time Limit and see if the issue will be sorted? I’d suggest increasing it to at least 300.

    Let me know if that works for you.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.