Make several optimizations to ticket-view page
* Log events for AJAX collaborator list edits * Avoid extra selects for inline image handling * Avoid using htmLawed to add target="_blank" and class="no-pjax" to links in the ticket thread * Cache instances of IntlDateFormatter; seems expensive to set up * Cache filetypes Yaml in APC if available * Cache I18n::getDefaltLanguage() in the request * Avoid extraneous usage of Model::_inspect and Model::$meta * Add aggregated query support to the ORM * Lazily compile SQL query for InstrumentedLists * Apply `select_related` setting when setting up InstrumentedList instances * Slight optimization in SqlCompiler::getField * Avoid double compiling Sql annotations in the ORDER BY clause * Cache Thread::getEntries * Break out event types for ThreadEvent for more legible code * Eliminate one query from Ticket::loadDynamicData * Fix ticket number bolding if already answered * Use dependent subqueries for ticket statistics in the queue page, which is significantly faster for large data sets (like hundreds of attachments or thread entries) * Fixup sidebar layout on client knowledge base pages
Showing
- assets/default/css/theme.css 1 addition, 1 deletionassets/default/css/theme.css
- css/thread.css 6 additions, 2 deletionscss/thread.css
- include/ajax.thread.php 0 additions, 13 deletionsinclude/ajax.thread.php
- include/class.faq.php 2 additions, 2 deletionsinclude/class.faq.php
- include/class.file.php 9 additions, 5 deletionsinclude/class.file.php
- include/class.format.php 25 additions, 49 deletionsinclude/class.format.php
- include/class.forms.php 10 additions, 2 deletionsinclude/class.forms.php
- include/class.i18n.php 7 additions, 4 deletionsinclude/class.i18n.php
- include/class.orm.php 167 additions, 118 deletionsinclude/class.orm.php
- include/class.thread.php 238 additions, 94 deletionsinclude/class.thread.php
- include/class.ticket.php 19 additions, 19 deletionsinclude/class.ticket.php
- include/client/faq-category.inc.php 5 additions, 3 deletionsinclude/client/faq-category.inc.php
- include/client/kb-categories.inc.php 6 additions, 3 deletionsinclude/client/kb-categories.inc.php
- include/client/kb-search.inc.php 1 addition, 1 deletioninclude/client/kb-search.inc.php
- include/staff/templates/thread-entry.tmpl.php 1 addition, 1 deletioninclude/staff/templates/thread-entry.tmpl.php
- include/staff/tickets.inc.php 12 additions, 14 deletionsinclude/staff/tickets.inc.php
- js/osticket.js 4 additions, 0 deletionsjs/osticket.js
- scp/js/ticket.js 4 additions, 0 deletionsscp/js/ticket.js
Loading
Please register or sign in to comment