• Resolved Jonas

    (@gnuworld)


    Hi

    We are using Cloudflare APO for full page caching, including all HTML to try and get this site to load fast from the edge without requests to our origin server whenever possible.

    Looking at network requests on any TP translated pages I however always see requests to trp-ajax.php and those cannot be cached by Cloudflare. This means site loading speed is impacted, especially whenever the user is located further away from our origin server.

    Are these trp-ajax.php requests a necessity with TranslatePress or is there any way that I can eliminate them?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,


    The trp-ajax.php file is actually our custom connection to the database to speed up the retrieval of data from your database.

    If you want to disable the file, install this plugin to switch to a WordPress native approach. The only drawback is that on some large websites it can be a bit slower to translate front-end dynamic texts.?https://translatepress.com/download/1151690/

    Cheers,

    Thread Starter Jonas

    (@gnuworld)

    Thank you for the feedback Denis, appreciate it.

    Thread Starter Jonas

    (@gnuworld)

    @sdenis Actually, this makes no difference. Because unless I am missing something now your plugin is calling admin-ajax.php instead and still making Ajax requests which are still not cacheable?

    If those responses are just translation strings, why do they need to be served dynamically instead of embedded in the HTML in way which is cacheable?

    Thread Starter Jonas

    (@gnuworld)

    @sdenis Any feedback?

    Plugin Support Alex

    (@alexcozmoslabs)

    I set this ticket as Resolved.
    You can also change its status back to unresolved and let us know by replying to this topic if your issue still needs attention.
    Another option is to let this ticket as it is and open a new one where to mention the issue again and ask for support.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘trp-ajax.php and Cloudflare caching’ is closed to new replies.