Support » Plugin: Skroutz.gr & Bestprice.gr XML Feed for Woocommerce » changing the update time of xml skroutz and bestprices

  • Resolved thikishop

    (@thikishop)


    Hello.

    first of all i wanted to tell you that your plugin is great and it works perfectly!

    I have a question.
    I think your plugin update hourly and because of this every time updates xml because its big my site is stuck for about 3 minutes.. so is there a way to change the code in php to change the update time? lets say evey 10 hours ?

    Thank you..
    Malakontas Kostas

    https://wordpress.org/plugins/woo-xml-feed-skroutz-bestprice/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author mpbm23

    (@mpbm23)

    Hi,
    in index.php replace
    wp_schedule_event( time(), ‘hourly’, ‘skroutz_xml_hourly_event’);
    with
    wp_schedule_event( time(), ‘twicedaily’, ‘skroutz_xml_hourly_event’);

    Thread Starter thikishop

    (@thikishop)

    thank you vey match!
    i wish you good citizen soon…

    Thread Starter thikishop

    (@thikishop)

    hello again.

    i find two lines in index.php with:
    wp_schedule_event( time(), ‘hourly’, ‘skroutz_xml_hourly_event’);

    should i change the under the function skroutz_xml_create_page() ?
    or under the add_action( ‘skroutz_xml_hourly_event’,

    or should i change both ?

    Plugin Author mpbm23

    (@mpbm23)

    Yes on both

    Thread Starter thikishop

    (@thikishop)

    thank you again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘changing the update time of xml skroutz and bestprices’ is closed to new replies.