php - Advanced Custom Fields is slow on admin screens -
i'm using acf set series of slots in page. admin screen contains series of flexible fields, each of can 1 of following:
- post
- category
- tag
works great on front end. can drag-and-drop, choose posts/categories/tags etc. database , have time.
unfortunately when trying add new slot page on end, or load it, time taken add new row killing it. i've got few rows there, it's taking unacceptably long; i'm sure when add few more we'll start getting timeouts.
the information can find problem support thread on acf forums (https://support.advancedcustomfields.com/forums/topic/slow-backend-v-2-5-7/), says:
yeah, if you've got big database , try , use flexible fields it's gonna that.
i'm using acf-json no noticeable effect.
has else experienced problem? did work around it? or did have abandon?
(ideally solution keep flexible fields, they're client wants in situation - if there's solution enables them edit end in linear time, i'm interested in too.)
it's due way acf loads repeater fields , flexible fields. layouts in flexible fields loaded dom , hidden, , absolute ton of javascript logic applied of them. when click add new "slot", runs clone of hidden layout, , attaches necessary event handlers clone.
if check timeline page domcontentloaded vs load (final render event), domcontentloaded pretty fast of time, load (everything happens after html loaded) eats of time, , memory.
best i've been able activate new "delay initialization" option wysiwyg content fields, , disable "stylized ui" , "ajax" options select, checkbox, , radio fields.
ultimately, biggest issues come having nested repeaters/flexfields inside repeaters/flexifields. avoid nesting as can , page load time decrease significantly.
Comments
Post a Comment