bobbingwide / oik-bwtrace

debug trace for WordPress
https://www.oik-plugins.com/oik-plugins/oik-bwtrace-debug-trace-for-wordpress/
GNU General Public License v2.0
6 stars 1 forks source link

Evidence of multiple REST requests using same trace file #114

Open bobbingwide opened 10 months ago

bobbingwide commented 10 months ago

While testing a minor change to oik-magnetic-poetry's server side rendering I noticed that it was very slow. The trace file for the request appeared to be recording duplicate events. This was confirmed by looking at the daily trace summary and the trace file itself.

/oikcom/wp-json/wp/v2/block-renderer/oik-mp/magnetic-poetry?context=edit&attributes%5Bcontent%5D=Code%20is%20Poetry%20%0AAin%27t%20that%20true%3F%0ANo%20it%27s%20not%0AOh%20well%2C%20never%20mind%20eh%3F&attributes%5BtextAlign%5D=center&attributes%5BfontSize%5D=tiny&post_id=34249&_locale=user,,41.724920,8.1.23,1284,6720,1069,58,1464,61,42,21,26,0.012457609176636,C:/apache/htdocs/oikcom/bwtrace/bwtrace.rest.19,611,169,28786,127.0.0.1,41.724369,2023-10-29T11:18:00+00:00,Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML; like Gecko) Chrome/118.0.0.0 Safari/537.36,GET,200
/oikcom/wp-json/wp/v2/block/34249/autosaves?_locale=user,,44.519320,8.1.23,1284,6757,1075,58,1472,61,42,21,140,0.36205339431763,C:/apache/htdocs/oikcom/bwtrace/bwtrace.rest.19,629,169,31018,127.0.0.1,44.518990,2023-10-29T11:18:02+00:00,Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML; like Gecko) Chrome/118.0.0.0 Safari/537.36,POST,200
bobbingwide commented 10 months ago

I noticed that it was very slow.

Actually it was diabolical, even when the same file wasn't being used by two requests.