Jump to content

Invoice cancelation slow


Nesooo

Recommended Posts

Hi, why is invoice cancellation extremely slow, our setup is on dedicated server, not load, large amount of RAM, optimized, MariaDB etc. only slowdown is when invoices are canceled, it can take over 30-60 seconds and nothing else can be done until this process is done. Is this related maybe to MariaDB or we missing something else or it is general problem with WHMCS when you have larger set of clients, we have around 1500+

Link to comment
Share on other sites

  • WHMCS Developer

How are you cancelling the invoice?

I am going to guess using the "Mark Cancelled" option from a list of invoices.

Depending on how many invoices you are cancelling at a time, this is a simple operation.

  1. Update status in tblinvoices to cancelled
  2. Log an item in the Activity Log
  3. Run the InvoiceCancelled hook

This will run for *each* invoice you are cancelling at the time.

Do you have any hooks running, using this hook point that could be causing the slowdown?

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated