Skip Navigation

[Resolved] View is very slow on loading

This thread is resolved. Here is a description of the problem and solution.

Problem:
My View is very very slow on loading.
It has a few images in it only.

Solution:
The issue for this load time is usually due to Custom Image Sizes loaded in the View on the fly.

For example the ShortCode "[wpv-post-featured-image size="custom" width="400" height="283" crop="true"]".

Replace that ShortCode using the "Fields and Views" button and do not use a Custom Size.
Instead, use a predefined Size.

Then the problem will be gone.

If you miss some sizes apart of the default one, you can register a new Custom Size in your theme.

After you do that, all images that you upload to WordPress will have as well this new custom size.
That can then be picked to use with the ShortCode of the Featured Image or other images as well.

To update old existing images to use the new size as well, you can use plugins like this:
https://de.wordpress.org/plugins/regenerate-thumbnails/

Relevant Documentation:
https://developer.wordpress.org/reference/functions/add_image_size/

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 16 replies, has 3 voices.

Last updated by Beda 6 years, 9 months ago.

Assisted by: Beda.

Author
Posts
#610791

i tried the plugins on a few domains and all of them are very very slow on loading the page(takes 7-15 sec)
i thought its because of the server but i have on the same server a few websites and all of them running fine.
i even tried to use different themes but it didnt help.
do i need to do something in the setup to make it run better?

#610945

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - which page causing the performance issue?

In general, performance obviously affects the site speed when you have hundreds of custom post type setup with the number of taxonomies as well as custom fields. One aspect is how much content you have BUT it depends also on your server configuration (memory,cashing) as well as number of other factors such as how complex your data structure is.

Here is the article how you can use parametric search with large data.
=> https://toolset.com/documentation/user-guides/how-to-use-views-parametric-search-on-large-sites/

Following related tickets may help you:
=> https://toolset.com/forums/topic/view-loads-very-slowlyslow-script/

#610975

this wasn't helpful at all, all you needed to do is to open the website in your browser and see that the site is very slow.
as i said before i installed the same plugins (toolset, views.....) on a different domain and i still had a speed issue.
can you please check my site and not send me just a general information???

here is the debug file
{"core":{"Wordpress":{"Multisite":"No","SiteURL":"http:\/\/wasatchhomes.net","HomeURL":"http:\/\/wasatchhomes.net","Version":"4.9.2","PermalinkStructure":"\/%year%\/%monthnum%\/%day%\/%postname%\/","PostTypes":"post, page, attachment, revision, nav_menu_item, custom_css, customize_changeset, oembed_cache, wp-types-group, wp-types-user-group, wp-types-term-group, project, cred-form, cred-user-form, product, product_variation, shop_order, shop_order_refund, shop_webhook, dd_layouts, view, view-template, message, listing, package, widget-area","PostSatus":"publish, future, draft, pending, private, trash, auto-draft, inherit, wc-pending, wc-processing, wc-on-hold, wc-completed, wc-cancelled, wc-refunded, wc-failed"},"Server":{"jQueryVersion":"1.12.4","PHPVersion":"5.6.30","MySQLVersion":"5.5.51","ServerSoftware":"Apache"},"PHP":{"MemoryLimit":"256M","UploadMax":"64M","PostMax":"64M","TimeLimit":"30","MaxInputVars":"1000"}},"plugins":{"active_plugins":{"cred-commerce\/plugin.php":{"WC requires at least":"","WC tested up to":"","Name":"Toolset CRED Commerce","PluginURI":"https:\/\/toolset.com\/home\/cred-commerce\/","Version":"1.6.1","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"cred-commerce","DomainPath":"","Network":false,"Title":"Toolset CRED Commerce","AuthorName":"OnTheGoSystems"},"cred-frontend-editor\/plugin.php":{"WC requires at least":"","WC tested up to":"","Name":"Toolset CRED","PluginURI":"https:\/\/toolset.com\/home\/toolset-components\/#cred","Version":"1.9.4","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"cred-frontend-editor","DomainPath":"","Network":false,"Title":"Toolset CRED","AuthorName":"OnTheGoSystems"},"framework-installer\/views-demo.php":{"WC requires at least":"","WC tested up to":"","Name":"Toolset Framework Installer","PluginURI":"https:\/\/toolset.com\/documentation\/views-demos-downloader\/?utm_source=local-ref-site\u0026utm_medium=wpadmin\u0026utm_term=visit-plugin-site\u0026utm_content=plugins-page\u0026utm_campaign=framework-installer","Version":"2.1.9.4","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com","TextDomain":"framework-installer","DomainPath":"","Network":false,"Title":"Toolset Framework Installer","AuthorName":"OnTheGoSystems"},"layouts\/dd-layouts.php":{"WC requires at least":"","WC tested up to":"","Name":"Toolset Layouts","PluginURI":"https:\/\/toolset.com\/","Version":"2.2","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com","TextDomain":"layouts","DomainPath":"","Network":false,"Title":"Toolset Layouts","AuthorName":"OnTheGoSystems"},"rich-reviews\/rich-reviews.php":{"WC requires at least":"","WC tested up to":"","Name":"Rich Reviews","PluginURI":"http:\/\/nuancedmedia.com\/wordpress-rich-reviews-plugin\/","Version":"1.7.3","Author":"Nuanced Media","AuthorURI":"http:\/\/nuancedmedia.com\/","TextDomain":"rich-reviews","DomainPath":"\/lang","Network":false,"Title":"Rich Reviews","AuthorName":"Nuanced Media"},"toolset-classifieds\/toolset-classifieds.php":{"WC requires at least":"","WC tested up to":"","Name":"Toolset Classifieds","PluginURI":"https:\/\/toolset.com\/","Version":"0.3.9","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"toolset_classifieds","DomainPath":"","Network":false,"Title":"Toolset Classifieds","AuthorName":"OnTheGoSystems"},"types\/wpcf.php":{"WC requires at least":"","WC tested up to":"","Name":"Toolset Types","PluginURI":"http:\/\/wordpress.org\/extend\/plugins\/types\/","Version":"2.2.21","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com","TextDomain":"types","DomainPath":"","Network":false,"Title":"Toolset Types","AuthorName":"OnTheGoSystems"},"woocommerce-views\/views-woocommerce.php":{"WC requires at least":"","WC tested up to":"","Name":"Toolset WooCommerce Views","PluginURI":"https:\/\/toolset.com\/documentation\/views-inside\/woocommerce-views\/","Version":"2.7.5","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com","TextDomain":"woocommerce-views","DomainPath":"","Network":false,"Title":"Toolset WooCommerce Views","AuthorName":"OnTheGoSystems"},"woocommerce\/woocommerce.php":{"WC requires at least":"","WC tested up to":"","Name":"WooCommerce","PluginURI":"https:\/\/woocommerce.com\/","Version":"3.2.6","Author":"Automattic","AuthorURI":"https:\/\/woocommerce.com","TextDomain":"woocommerce","DomainPath":"\/i18n\/languages\/","Network":false,"Title":"WooCommerce","AuthorName":"Automattic"},"wp-views\/wp-views.php":{"WC requires at least":"","WC tested up to":"","Name":"Toolset Views","PluginURI":"https:\/\/toolset.com\/?utm_source=viewsplugin\u0026utm_campaign=views\u0026utm_medium=plugins-list-full-version\u0026utm_term=Visit plugin site","Version":"2.5.2","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com","TextDomain":"wp-views","DomainPath":"","Network":false,"Title":"Toolset Views","AuthorName":"OnTheGoSystems"}},"mu_plugins":{"endurance-page-cache.php":{"WC requires at least":"","WC tested up to":"","Woo":"","Name":"Endurance Page Cache","PluginURI":"","Version":"1.1","Description":"This cache plugin is primarily for cache purging of the additional layers of cache that may be available on your hosting account.","Author":"Mike Hansen","AuthorURI":"https:\/\/www.mikehansen.me\/","TextDomain":"","DomainPath":"","Network":false,"Title":"Endurance Page Cache","AuthorName":"Mike Hansen"}},"dropins":[]},"theme":{"Name":"Ofek Digital","ThemeURI":null,"Author":"\u003Ca href=\u0022http:\/\/Ofek%20Digital\u0022\u003EOfek Digital\u003C\/a\u003E","AuthorURI":null,"Template":"Divi","Version":"1.9","TextDomain":null,"DomainPath":null},"extra-debug":{"types":{"add_resized_images_to_library":0,"register_translations_on_import":1,"images_remote":0,"images_remote_cache_time":"36","help_box":"by_types","hide_standard_custom_fields_metabox":"show","postmeta_unfiltered_html":"on","usermeta_unfiltered_html":"on"},"CRED":{"dont_load_bootstrap_cred_css":null,"dont_load_cred_css":null,"enable_post_expiration":"1","export_custom_fields":"1","export_settings":"1","use_bootstrap":null,"wizard":"1","allowed_tags":{"address":"1","a":"1","abbr":"1","acronym":"1","area":"1","article":"1","aside":"1","audio":"1","b":"1","big":"1","blockquote":"1","br":"1","button":"1","caption":"1","cite":"1","code":"1","col":"1","colgroup":"1","del":"1","dd":"1","dfn":"1","details":"1","div":"1","dl":"1","dt":"1","em":"1","fieldset":"1","figure":"1","figcaption":"1","font":"1","footer":"1","form":"1","h1":"1","h2":"1","h3":"1","h4":"1","h5":"1","h6":"1","header":"1","hgroup":"1","hr":"1","i":"1","img":"1","ins":"1","kbd":"1","label":"1","legend":"1","li":"1","map":"1","mark":"1","menu":"1","nav":"1","p":"1","pre":"1","q":"1","s":"1","samp":"1","span":"1","section":"1","small":"1","strike":"1","strong":"1","sub":"1","summary":"1","sup":"1","table":"1","tbody":"1","td":"1","textarea":"1","tfoot":"1","th":"1","thead":"1","title":"1","tr":"1","track":"1","tt":"1","u":"1","ul":"1","ol":"1","var":"1","video":"1"}},"layouts":{"ddl_layouts_css_framework_options":"bootstrap-3","framework_setup":true},"views":{"views_template_loop_blog":0,"wpv_bootstrap_version":"3","wpv_custom_conditional_functions":["is_archive","is_year","is_tag","is_post_type_archive","is_category","is_tax","is_month","is_search","is_singular","is_author","is_404","classifieds_verify_if_user_is_ad_package_client","classifieds_check_if_subscription_is_still_valid","classifieds_check_if_wpml_is_running","woo_product_on_sale","woo_product_in_stock","wpv_woo_single_products_rating_func","wpv_woo_list_attributes_func","wpv_woo_show_upsell_func","wpv_woo_products_rating_on_listing_func","woo_has_product_subcategory","woo_shop_display_is_categories","classifieds_func_return_active_package_of_user","classifieds_func_check_if_ad_package_empty","wpv_woo_product_belongs_to_this_order"],"wpv_custom_inner_shortcodes":["classifieds-currency","classifieds-return-available-ad-credits","classifieds-page-url","classifieds-redirect","classifieds-no-image-available","wpml-post-languages","wpml-post-original-language","classifieds_myaccount_settings_url","classifieds_myads_list_url","classifieds_manage_ad_package_url","classifieds_my_messages_url","classifieds_logout_url","classifieds_changepassword_url","classifieds-listing-info","classifieds-message-userdata","classifieds-message-data","classifieds-return-active-package","cred-post-expiration","wpv-current-user"],"wpv_debug_mode":0,"wpv_debug_mode_type":"compact","wpv_map_plugin":0,"wpv_show_edit_view_link":1,"wpv_show_hidden_fields":"_cred_post_expiration_time","wpv_saved_auto_detected_framework":"","wpv_codemirror_autoresize":1,"wpv_enable_pagination_manage_history":1,"wpv_enable_parametric_search_manage_history":1,"wpv-debug-mode-type":"compact","wpv-theme-function":"render_view_template","view_cpt_product":"6315","view_cpt_listing":"6315","view_cpt_package":"6315","view_taxonomy_loop_category":"6315","view_taxonomy_loop_post_tag":"6315","view_taxonomy_loop_product_cat":"6315","view_taxonomy_loop_product_tag":"6315","view_taxonomy_loop_location":"6315","view_taxonomy_loop_listing_cat":"6315"}}}

#610976

and i already tried to use a default theme only with your plugins as well

#610988

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - actually we need those basic information as its really helpful for us for our further debug.

Sure I would like to check your site - I need access details to check your site structure as well.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

I have set the next reply to private which means only you and I have access to it.

#611053

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - I tried following to analyze the page speed and there they given the hints how you can improve the performance of your page:
=> hidden link

I do not see anything specific to Toolset plugins but the site give few hints to improve your speed. Could you please check and test it.

I found another very good resource as well that may help you to analyze your request:
=> hidden link

#611056

i get 500 error now.
i know about this tools that you telling me about and i still dont understand how you help me by this.
the only plugins that installed on that site are your plugins with the divi theme so why i need to work on the website speed?

you can see the site is very slow so why cant you fix it?

#611057

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - as you do not shared any FTP access that means I do not modified anything on your site that means you should contact your hosting authority and check with them whats going wrong there.

As I said - If I found anything related to Toolset, we are happy to debug the issue further and to fix it but until I cant help you much here.

#611066

ok i just finished talking with host gator and they said that the resources for this site are very expensive.
also, i updated the private message with the FTP account so you can access it now.

please let me know that you can login now

#611085

Hi, Minesh asked me to follow up with you here.

I analyzed your website and here is the result:

- Loading the site fully from the server until completely loaded costed me around 60 seconds.
- The longest or slowest processes are on the admin-ajax.php calls to jquery.js
- These are native WordPress files, Toolset Views uses them for Front End operations like Pagination with AJAX or search with AJAX.
- We enqueue several codes natively always everywhere, because we do not know when or where a View will call for AJAX operations.
- There are other, faster queries (but also around 30/50 seconds) that hit the same file.

In fact the performance issue you experience here, should be due to the View with ID 6332.

The above points do not change much if I load the website from the cache.

What I am confused about is that you mention this happens on few domains all on the same server.
This would either mean you have on all those domains the same heavy Views Query in place, which is unlikely, Views usually does not present such issues with AJAX, or, that the Server is somehow slowing or blocking (but not completely, because we get a 200 OK response) the AJAX requests to the server.

Might I ask if it's possible to get this data from you:
- a copy of this site so I can deploy it on one of our online servers
- a copy of the server debug Log, which you would get from the server admins.

I will then test this on our servers, and check if we can spot a difference or what else this might be due to.

Thank you for your collaboration!

#611114

This report the Server Admin shared with you shows issues about your website that are entirely irrelated to Toolset.
I cannot help fix them.

But these are not the reason why the specific View I reported above to be the culprit is slow, or at least, not at first sight.
It might be that this View is slow because those images it loads are, as shown in the report you became from your Server Admin, are not optimized, means, too big.

The CSS and minify reports that are targeting also Toolset are not relevant to such load times. They are expected and not to be worried bout.

What we need to worry is the 60 second it takes to load that admin AJAX command.

This is unexpected, and if the issue lies within Toolset we will put all our effort into fixing this, or as you desire, we will refund you as well, no questions asked, if you are within the 30 days of testing period.
I can assure you if this issue will take longer than those 30 days and you are now within that period, we will as well come to an agreement that will suite you, inclusive a refund if it will come to (hopefully not).

Now, lets go to the bottom of this and solve it.

I need the debug log of the server.
The Server Admin can provide this.

You might contact them with a message similar to this:
"In order to analyze the performance of the Toolset Plugin on my Website, I have been asked to provide a copy of the Server Debug Log concerning my site: xy.com"

Then, you can share that with me.
It will help me to pin point the issue if any errors are reported.

Other issues on the side of CRED in the report might be false alarms, as CRED is a front end form creator and shall not be cached, hence that is expected.

I do not think those are the issues that slow your site, as stated, I found the View that is calling the need file and we need to know why it takes so long to load it.

I tried to grab a duplicator, but the server interrupts the process.
This is not due to Toolset. You can disable it, and try again, it will probably fail as well.

You use as well cache on this site, which sometimes can create exactly the issues you experience, instead of solving them.

I need to test this issue locally so I can control all those different variables.

What we can do now is deploy the site with a copy of the Database and FTP files, instead of the Duplicator File.

For that, I would need a copy of your Database (a Database Dump) and a copy of the wp-content folder (as a ZIP).

I am relatively sure this is an issue between the cache mechanisms used, the server and Views calling the AJAX since it needs to be ready when the page loads.

We will be able to tackle down what is blocking the call, since it's clear what is causing it.

#611143

You can upload them to as example Google Drive, and share the link to it with me.
Google allows you to share the file with anyone who has it, and since your reply will be private, only me will have it.

Thank you!

#611335

did you get the info that you needed?

#611410

The entire wp-content and wp-includes is missing in the zip.
I can replace WordPress, but not your Theme and Plugins.

I nonetheless deployed it with a vanilla version of WordPress and your Database, and I get a long list of errors on the log in page already.

I saw that this is because also the wp-admin folder is corrupted in the downloaded zip.

After replacing that too, I was able to log in.

On my server right now the admin Ajax calls are around 2 seconds.

The issue for this load time is the ShortCode "[wpv-post-featured-image size="custom" width="400" height="283" crop="true"]".

You are using a Custom Size here, which produces expected load times.
The problem is, this custom image size does not exist on your server. When you upload the image, the server does not store a copy of this size, but only of the sizes defined in Dashboard > Settings > Media

If you change your above ShortCode to use a predefined size, 90% of the load time will be gone.
Or, you can register a new image size within your Theme so on upload, of new images, or regenerating the Thumbnails, those custom sizes do exist and hence will not force Views to generate them on the fly.

Each image displayed with custom size, may slow down your site by at least one second when this image should be displayed.
I recommend to not use Custom Sizes with this setup - instead use predefined sizes.

This will resolve the performance issue due to Toolset.

#612139

"If you change your above ShortCode to use a predefined size, 90% of the load time will be gone.
Or, you can register a new image size within your Theme so on upload, of new images, or regenerating the Thumbnails, those custom sizes do exist and hence will not force Views to generate them on the fly.

Each image displayed with custom size, may slow down your site by at least one second when this image should be displayed.
I recommend to not use Custom Sizes with this setup - instead use predefined sizes.

This will resolve the performance issue due to Toolset"

*can you explain me what the steps i need to do please?