The linked site is a restaurant, that has a pick up service made with Woocommerce. There is a PHP function that should run every time the page is loaded and check today’s opening hours and based on that open the pick up ordering if the restaurant is open and close the shop, if the restaurant is closed. There is a setting for opening and closing hours for each day of the week and it might change sometimes.
It seems that I cannot make the page cacheable at all, since this function will never be on time, but an earlier version of the front page is offered and based on the time it was cached the shop is closed or open incorrectly…
Is there anything I can do to speed up the front page, while still enabling the closing and opening based on the exact time.
The page I need help with: [log in to see the link]
- The topic ‘Problem with timed opening hours’ is closed to new replies.