• Resolved comunicacionabierta

    (@comunicacionabierta)


    Hi!

    I’ve just noticed that the plugin consumes a lot of resources realted to the admin-ajax and the url mysite.com/wp-content/plugins/etranslation-multilingual/includes/etm-ajax.php.

    Is there any way to reduce that so the site can perform better?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author europeancommission

    (@europeancommission)

    Hi!

    Thank you for your question. To provide a more accurate answer, could you please elaborate on the issue you’re experiencing? When you mention that the plugin ‘consumes a lot of resources,’ are you referring to its impact on your website’s performance, such as slow loading times or high CPU usage? Is this related to the pre-translation feature that activates after you initiate ‘Translate all’?

    Thread Starter comunicacionabierta

    (@comunicacionabierta)

    Hi!

    It’s about the CPU usage. It goes extremely high when using a shared hosting where they limit to 40.000 second per day. I got on some days between 330.000 and 250.000.

    I understand that maybe the solution is to have a better server but I guess this kind of information is very useful for you. If anyone wants to enjoy this great tranlstion opportunity you have created they have to know the limits.

    Thanks a lot!

    Hi!

    Thank you for reporting this issue. Unfortunately, I was not able to replicate it on local environment. I do see a little higher CPU usage when the plugin is translating text, which is expected. But after translation, CPU usage goes back to normal. Can you give more details of your specific environment:

    • WordPress version;
    • PHP version;
    • MySQL version;
    • Shared hosting provider name/plan;
    • List of other plugins used in the website?

    Thread Starter comunicacionabierta

    (@comunicacionabierta)

    Hi!

    Thanks for the work to see what happens. I give you as much information as I can:

    • WordPress version: 6.6.1
    • PHP version: 7.4
    • Shared hosting: Sitegound GoGeek
    • Elementor
    daavisr

    (@daavisr)

    Hello,

    I tried to replicate your environment locally, using WordPress 6.6, PHP version 7.4 and Elementor, but did not see any CPU usage issues. However, as this plugin is a fork of TranslatePress, I found similar issues reported on their forum. It seems the issue comes from some element which is being overdetected and constantly retranslated by plugin. The suggestions are:

    • Remove duplicate entries from database (WEB-T – eTranslation Multilingual -> Advanced tab)
    • Disable Dynamic translation (WEB-T – eTranslation Multilingual -> Advanced tab)
    • Disable Gettext translation (WEB-T – eTranslation Multilingual -> Advanced tab)
    • Identify the HTML node that contains that overdetected text and use Advanced Settings option Exclude from dynamic translation to input the JS/CSS selector for that node. To identify which node/page is affected, you can try:
      • opening different pages, static or dynamic content, see if there is any difference;
      • check browser’s Developer options -> Network tab. If there are requests to etm-ajax.php, click on this request, inspect the content. It should contain details about node ID.
      • Temporarily disable Elementor, check if there is any difference.
    • Check sources bellow, download the suggested add-on for TranslatePress. Then edit the PHP file inside, replacing every ‘trp’ occurrence with ‘etm’. Install this add-on, see if it helps.

    Sources:

    • This reply was modified 5 months ago by daavisr.
    Thread Starter comunicacionabierta

    (@comunicacionabierta)

    Thanks a lot! I’ll be trying all those advices you give me.

    Kind regards

    Plugin Author europeancommission

    (@europeancommission)

    Resolving this issue, as there have not been any further replies for more than a month. If this issue is still present, please register a new issue topic.

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