tickets.list read efficiency

Version 1.51

Bugfix
Finished

In cases where the tickets.list file becomes over-sized due to Admin's not reading/deleting old messages, the read can be very slow. Changes to the container class should make reading these oversized lists much quicker, as the file is now loaded in fully, and then sorted, instead of the previous default of reading a line, adding it to the end if it's not already present, and sorting. The drawback with this faster method is that it does not check for duplicates, but they shouldn't (in theory) happen in the first place, so is a reasonable risk/benefit.

Interested to try DirectAdmin? Get a 30-day Free Trial!