kub1x
Forum Replies Created
-
Hey, thanks for the prompt reply.
- 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.
- Nice. I’d have that on by default.
- 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.
Forum: Plugins
In reply to: [Modern Events Calendar Lite] Plugin slowing down siteOk. 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 anddie()
in the source so it feels, that thing isn’t quite production ready just yet.Forum: Plugins
In reply to: [Modern Events Calendar Lite] Plugin slowing down siteThe 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.