This drastically reduced the load time down to less than a second.
This does require you to change the core file and it would be lost on update, Also, if you are actively adding custom fields this would likely not be a good solution.
Please feel free to let me know if this might cause other problems and use it at your own risk.
Hey Guys,
I have around 12,000 listings in my directory and it was taking around 30 seconds to load the search results page or any category or taxonomy.
The custom field list function was the culprit and my database just couldn’t handle the load.
I modified class_core. php and replaced:
$last_posts = (array)$wpdb->get_results($SQL);
with
If ( false === ( $last_posts = get_transient( ‘wlt_customfieldlist’))) {
$last_posts = (array)$wpdb->get_results($SQL);
set_transient( ‘wlt_customfieldlist’, $last_posts, 12 * HOUR_IN_SECONDS );
}
This drastically reduced the load time down to less than a second.
This does require you to change the core file and it would be lost on update, Also, if you are actively adding custom fields this would likely not be a good solution.
Please feel free to let me know if this might cause other problems and use it at your own risk.
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now