Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter vgibara79

    (@vgibara79)

    Hello ! Wanted to follow up on this.

    I though it was the region that caused problem, as my server and my spaces wasn’t in the same region. I moved all my medias to a new bucket in the same region, but the long delay was still there.

    So i decided to debug every line of code to find out where was the long delay.

    I found out it was a problem caused by the plugin Polylang that is adding a filter on wp_delete_file. This filter has a query into the post_meta table. However, we have a very large post_meta table, and there was no index on the required fields (post_id, meta_key and meta_value), therefore taking about 25 seconds each time, running that specific query.

    Only by adding this index, everything runs in less than 2 seconds, depending on the file size.

    Thanks for your help !

    • This reply was modified 1 year, 2 months ago by vgibara79.
Viewing 1 replies (of 1 total)