Support » Plugin: WooCommerce Accommodation Bookings » Really slow product page loading

  • Hi,

    I made a fresh installation with following plugins:
    Woocommerce
    Woocommerce Bookings
    Woocommerce Accommodation Bookings
    using the twentysixteen theme.

    Then I made 1 accommodation booking product and made about 10 bookings for that accommodation. I made bookings from November to January using different bookings range: 2 nights, 7 nights, 3 nights. etc.

    Now when I open the accommodation booking product page on my browser the page load is about 12 seconds and expanding really quickly when adding more bookings for that product. So it is really really slow.

    I managed to debug the problem to a function named “get_blocks_in_range_for_hour_or_minutes” or perhaps in that function the problem is “get_bookable_minute_blocks_for_date”.

    Is there any way to speed up this? If I understood the functionality it checks bookable blocks minute by minute. Why? Hourly check should be just fine or perhaps it should just check whether the checkout time is less than the checkin time -> day is partly booked.

    • This topic was modified 3 years, 2 months ago by JuTu83.
Viewing 3 replies - 16 through 18 (of 18 total)
  • I have exactly the same problem.. Booking + Accommodation extension is extremely slow.. especially when you have more than 10 booked items (product). Right after a few bookings has been made, when booking a room (product) it loads sooooo slow nearly a minute or so. But without accommodation ext.. moreover without booking plugin, all other items (product) loads normal.. I mean so fast. Hope there will be a solution for this kind of problem.

    There is a ‘hack’ work around but the problem stems from the fact that ‘nights’ is not covered in the checks for availability. It reverts to checking by minutes and seconds, as such, its only going to get slower the more bookings are made.

    I’ll upload some code later when I have it in front of me.

    Plugin Contributor Jesse Pearson

    (@jessepearson)

    Automattic Happiness Engineer

    Hey all, sorry for the lack of support here. Since Accommodations requires Bookings, most store owners submit tickets revolving around issues.

    This issue was corrected in Accommodations 1.0.8 which pairs with Bookings 1.10.0+. Version 1.0.9 was just tagged and will be available here shortly, but if you’d like to get it now, you can get it through the GitHub repo.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Really slow product page loading’ is closed to new replies.