Extremely Slow Calendar when using Event Ticket PLus

Home Forums Ticket Products Event Tickets Plus Extremely Slow Calendar when using Event Ticket PLus

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1135487
    Emiliano Pasini
    Participant

    Hi, I’m having problems with the last update of the event ticket plus, the calendar is taking 40-50 secs to load!
    I’m using Wpengine and a dedicated server so it’s not a problem of hardware. The problem is related to the plugin’s query code and the database needing to be optimized. Could you please point me in the right direction we need to sort this out ASAP! Please see screenshots.

    Thanks,
    Emi

    #1135568
    Emiliano Pasini
    Participant

    It looks like a good portion of the slowness is correlated with the number of calls to : tribe_get_template_part
    Please, need assistance, thanks!
    Emiliano

    #1135733
    Hunter
    Moderator

    Hey Emiliano 🙂

    Thank you for reaching out. Would you mind sharing your System Information as a private reply?

    While we’re always working towards optimizing our code for performance, I don’t have any solid solution right off the bat to alleviate the issues you’re experiencing. Additionally, we don’t have any logged bugs of users reporting similar issues.

    We’ve got a few resources focused on performance which I’ll link below. Thank you again for posting and I look forward to your response. Cheers!

    https://theeventscalendar.com/the-events-calendar-performance-considerations/

    The Calendar Doesn’t Look Right

    Caching Basics

    #1135737
    Emiliano Pasini
    Participant

    This reply is private.

    #1135738
    Emiliano Pasini
    Participant

    This reply is private.

    #1136186
    Hunter
    Moderator

    Hello 🙂

    Thank you for getting back to me. I took a look at your list of plugins and it doesn’t look like you’re utilizing a caching plugin. There are many factors that have an effect on the performance of your site, but caching is definitely something worth considering. There are many free plugins in the WP repository that can do the job, such as WP Super Cache and W3 Total Cache. WP Rocket is a caching plugin I personally use and can vouch it’s worth the price!

    We continually explore ways to improve our code and methods, but it is ultimately up to the site manager to optimize their site for performance. I hope this clarifies any concerns you might have and strongly recommend reading through the articles pertaining to performance in my first response.

    Feel free to respond with any more questions or concerns and have a great rest of your day.
    Cheers!

    #1137389
    Emiliano Pasini
    Participant

    I used this to display if the event was sold out on the monthly calendar. This bit of code was causing the calendar to load really slow.

    <?php if ( tribe_events_has_soldout() ): ?>
    <span class=”tickets-sold-out”>
    Sold out!
    </span>
    <?php elseif ( tribe_events_has_tickets() ): ?>
    <span class=”tickets-in-stock”>
    On sale!
    </span>
    <?php endif ?>

    I remove it and everything is working fine again. Any alternatives or ideas, I really need this feature of displaying SOLD OUt messages if there is no tickets avaiable,

    Thanks!

    #1137524
    Hunter
    Moderator

    Welcome back,

    Thank you for the update and I’m glad to hear we’re on the right track. To add the ‘Sold out’ notice to month view, you’ll need to do a custom template override as outlined in our Themer’s Guide.

    The file you’ll need to overwrite is /the-events-calendar/src/views/month/single-event.php. Save it with the following structure to avoid losing customizations when updating: [your-theme]/tribe-events/month/single-event.php.

    Add the following code wherever you’d like, we recommend on line 197:

    <?php if ( tribe_events_has_soldout() ): ?>
    <span class="tickets-sold-out">
    Sold out!
    </span>
    <?php endif ?>

    Let me know how it goes 🙂

    #1143399
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Extremely Slow Calendar when using Event Ticket PLus’ is closed to new replies.