Memory Consumption, CPU Usage Off the Chart and Tag Sync Doesn't work
This topic contains 45 replies, has 3 voices, and was last updated by jbissitt 8 years, 6 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
May 13, 2016 at 11:59 am #189835
Also the GD Booster I de activated as this more than doubles the site load speed?? I thought this should speed up the site not make it much slower. Please run a pingdom speed test without and without it active and you will see what I mean??
May 13, 2016 at 12:04 pm #189836GDB helps server the code optimally, the server is taking a long time to process to code to server it, GDB then has to run on this code. The code will load faster but your server might take longer to proccess it, also it will not show cache to a logged in user.
Stiofan
May 13, 2016 at 12:10 pm #189838So if we implement the fix across all site do you think the load will be a lot less on the server then do we can use gd booster? Has the fix reduced server resources then? If so how significant is this as if it’s not much I may have to buy a much more powerful server as even with this dedicated server its not coping at all at the moment?
Thanks
May 13, 2016 at 12:17 pm #189840The hardest thing on your resources just now is the fact you have 1500 cats, do u need 1500 cats? If so then it might be best to try disable some functionality of GD to help you support this. I can’t comment on your other sites as i don;t know how many cats/listings/locations they have.
Stiofan
May 13, 2016 at 12:19 pm #189841OK. All sites have the same number of cats. I am struggling to understand using the cpf to deal with cats. Do you have a guide or video or something to help me with this?
May 13, 2016 at 12:22 pm #189843Thats ur problem then, please see here, i already posted a link to info : https://wpgeodirectory.com/support/topic/memory-consumption-cpu-usage-off-the-chart-and-tag-sync-doesnt-work/page/2/#post-189831
Stiofan
May 13, 2016 at 1:19 pm #189910All sites have the same cats, is there a way to update one site via cpt and copy it across all 40 to save time?
May 13, 2016 at 1:28 pm #189942I can see how to add different post types but take our sussex sites for exmaple, we have 36000 records imported to relevant cats as places. if I add a new cpt I cant see anyway to easily move records into these. I have read the link provided and I can see how to create different types of listings but how can I re structure the data? i dont see how cpt is going to work without removing all data and running imports of 1,000,000 records across 40 sites again which took weeks because of difficult it is to import and how slow it is??
Please can you explain or provide another solution?
Thanks
May 13, 2016 at 1:41 pm #189956The import is slow because of the number of cats again. It might be best to disable this functionality that we apply to count cat listings and ratings. I would concentrate on one site and get it right first. I dont have time at the moment but a quick chat about things might help, early next week would be the earliest.
Stiofan
May 13, 2016 at 2:03 pm #190025I doubt we will use ratings for a while and maybe not at all because of spam comments but can you clarify what you mean. What functionality could be disabled to prevent counts and reduce resources? How would this effect site use and experience?
May 13, 2016 at 2:08 pm #190034I would need to test but some widgets you would not be able to use or would have to remove the count from the category as it would be wrong, not too much functionality lost.
Stiofan
May 13, 2016 at 2:10 pm #190038If its just that and not much loss then this sounds like a good solution Stiofan and would save us a LOT of time. When will you be able to test this on the Sussex site?
May 13, 2016 at 2:11 pm #190039If we did this we would need it not to revert back when the plugins auto update, is this possible?
May 13, 2016 at 3:05 pm #190057I have added the changes now, there migh be some i missed but it all seems faster so far for adding reviews and listings, let me know how it is for you.
For future reference below is the code i have added to your theme functions file
//disable some GD features remove_filter( 'geodir_count_reviews_by_terms_before', 'geodir_get_loc_review_count_action',10); remove_action( 'geodir_update_postrating', 'geodir_term_review_count_update', 100); remove_filter( 'geodir_get_term_count_array', 'geodir_get_loc_term_count_filter' ); remove_action('geodir_update_postrating', 'geodir_term_review_count_force_update_single_post', 100); remove_action('transition_post_status', 'geodir_term_review_count_force_update', 100); remove_action('edited_term', 'geodir_term_review_count_force_update', 100); remove_action('delete_term', 'geodir_term_review_count_force_update', 100); remove_filter('get_terms', 'gd_get_terms', 10); add_filter( 'geodir_count_reviews_by_terms_before', 'my_geodir_get_loc_review_count_action',10); function my_geodir_get_loc_review_count_action(){ return 1; }
Stiofan
May 14, 2016 at 7:56 pm #191049Thanks so to clarify all we need to do to complete is to paste this into the functions file for each site and the other changes have been made to the plugin and will update automatically with the update Monday?
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket