Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • How is this issue being resolved exactly by pluginsware?
    not sure why solutions if there are any may not be discussed here in the forum?
    Closing issue topics without solution would be an odd way of dealing with problems.

    Thread Starter marcopolo8888

    (@marcopolo8888)

    Congratulations Igor the newly wed!

    No, my timezone is set to UTC+7 and it shows UTC.
    I see that you mean function giveasap_get_timezone_short. It is just that $timezone_short or giveasap_get_timezone_short is not used anywhere in template1

    It is not, if the plugin can be translated, that is out of question that it can.
    It is about making it capable of being used in a multilanguage site with both Serbian and Croatian language at the same time: besides the plugin strings, making the post translatable, two editable email contents, titles etc. pp.
    WPML is doing mostly all the hard work, consider starting here:
    https://wpml.org/documentation/support/achieving-wpml-compatibility-for-your-themes-and-plugins/
    gpl plugins:
    https://github.com/wp-premium-themes?utf8=%E2%9C%93&q=wpml

    regards
    marco

    sure would not make sense to see this timeout caused in my case by nginx purging in another plugin.

    Hello Jason,
    thanks for coming back.
    In the meanwhile I had heavily logged microtimes and tracked woocommerce status and save functions. trying to backtrace in runtime does not work with POST requests like ?wc-ajax=checkout.
    That led to isolating the delay to
    do_action( 'wp_insert_comment', $id, $comment );
    Commenting this hook in the core file /wp-includes/comment.php eliminated the delay right away, but no order email either.
    ok finding the actions hooking into “wp_insert_comment” is best done with ssh in wordpress root:
    grep -Ril "add_action( 'wp_insert_comment" *

    result:

    wp-content/plugins/woocommerce/includes/class-wc-comments.php
    wp-content/plugins/sitepress-multilingual-cms-master/inc/translation-management/translation-management.class.php
    wp-content/plugins/nginx-helper/nginx-helper.php

    first one commented and checked out out, still 20 sec
    second add_action commented and checked out out, still 20 sec
    in third files the same commented and checked out in only 642ms !

    ok identified the source, but commenting out permanently does not makes sense

    			if (!strpos($_SERVER['REQUEST_URI'], "checkout")) 
    			{
    				add_action( 'wp_insert_comment', array( &$rt_wp_nginx_purger, 'purgePostOnComment' ), 200, 2 );
    			
    				add_action( 'transition_comment_status', array( &$rt_wp_nginx_purger, 'purgePostOnCommentChange' ), 200, 3 );
    			}

    added the condition just for this checkout use case, so that comments somewhere else still get purged

    my guess is, i could be wrong
    as the woocommerce save order normally adds an order comment the purge mechanism is called, however as this is backend wp-admin, no cache is created anyway
    my guess is that nginx cannot find any comment to purge in fastcgi and therefore (wild guess) takes a long time until the search times out after 17-18 sec or so.

    Jason, if you dont use this nginx helper then just use the grep command to find the plugin.
    Hope this helps

    Hello Jasonvpt,

    have you come to a conclusion?

    Having cloud hosting as well php 7.28. opcache, nginx fcgi etc. it is of course not a hosting capability issue whatsoever or a woocommerce version (3.4.3)
    As to wordpress I looked everywhere, i managed sometimes to have 2 seconds only.
    Then a while later, with nothing changed it is also 20 seconds TTFB ?wc-ajax=checkout again in woocommerce checkout. It is this variance with its tendency to be stuck more often than not at 20 seconds.
    I ruled out mail sending plugins, cloudflare, themes and all the other plugins. It does not seem to have an impact significantly.

    how to debug and trace that behaviour?
    regards
    Marco

    • This reply was modified 5 years, 8 months ago by marcopolo8888.
Viewing 5 replies - 1 through 5 (of 5 total)