Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kub1x

    (@kub1x)

    Hey, thanks for the prompt reply.

    1. Yes. Overriding user defined anything (heading anchor in this case) as a side effect of anything (adding a TOC block) is a poor practice. I’ve lost a lot of anchors and only figured it later by visiting a link broken this way. For me not checking if the anchor is not already defined is a huge bug.
    2. Nice. I’d have that on by default.
    3. I do understand your concern. I would just not do the checks and leave the dupes to the user, since it is not a good practice to have duplicate headers anyways. Maybe I’d just highlight the duplicate links in the TOC (on a debounced check with a linear complexity so not that complex after all).

    It is all just a thought. I want to have nice and readable anchor texts and here with UB I can’t get rid of the unnecessary numbering and/or enter/alter the anchors manually (which is also weird – the anchor edit boxes aren’t disabled, yet the editing does not work).

    I do like the look and controlls of the block though. Hope this feedback is of any use to you.

    Ok. After some more digging into it, the problem on our site caused the fluent-view-layouts MEC AddOn. https://webnus.net/modern-events-calendar/addons/fluent-view-layouts/ I can see some commented out var_dump()s and die() in the source so it feels, that thing isn’t quite production ready just yet.

    The plugin slowed our site to the point it can’t be used.

    I checked output of “Slow Actions for Debug Bar” plugin and this is the result. Our site is loading for about 50sec (!!). The image filters in MEC are at or very near the root of the cause.

    
    Action or Filter         Callbacks      Calls   Per Call        Total
    the_content                    13       16      1906.31ms       30500.99ms
    mec-render-data-thumbnails      2       15      1447.03ms       21705.51ms
    mec-render-data-featured-image  2       15      1380.53ms       20708.00ms
    

    I can see in nginx access log, that during the time a page is loading every image is loaded 22times.

    It happens for all images set as thumbnails/featured images in created mec events.

    It happens on all pages of our site including wp-admin.

    How should we approach this?

    I don’t see any +1 button here so.. +1.
    Thank you very much @wdfee! Your fix works.

Viewing 4 replies - 1 through 4 (of 4 total)