November 29, 2013

WordPress Admin is slowing down?

WordPress Admin is slowing down?

I have checked a client’s website in details. The reason was ACF, i couldn’t install any plugin so can’t tell the no. of queries+DOM elements generation which were taking time to load. In fact ACF was querying to every single field to wp_posts & wp_postmeta and then include a no. of php files according to field types. Suppose you have created a group of 5 fields and then used it in a custom post type or in all posts. Now every row will be increasing 5 queries at least for single row. One of our client complained the same slow speed issue last month in October 2013. We provided him the light interface to add/edit/delete rows with the help of jQuery datatable JS instead of loading all fields at a time. You can try the plugin “Debug Bar” to see the no. of queries executing on a single page where the maximum data is being managed through ACF. And yes, acf4master will be the target plugin folder for you if you are going to inspect it by yourself. In our case we were experiencing “form posted” and stopped execution because of 360 queries+form fields generation one by one and their submission at once. Another drawback of ACF form submission is, if any field you remove from DOM by JS or mistakenly couldn’t rendered so that will be permanently deleted on form submit. I found simple fields plugin better than this plugin. But for that client we were using the same because of a lot of data they entered. You can check by disabling the ACF for a while and then enable it. Although our machines are much faster now a days but still we have to balance the server side load with client side performance. We can’t simply put all load to browser in shape of bulk in DOM and can’t put a huge amount of fields with a single form because you are sending data from client to server and it takes memory which is not always in KBs. Assume it like a file upload. I hope this will help.

Thanks,
Fahad

Last updated: March 19, 2014