Bug #20393

Optimize hook to indexed_search that checks for a running crawler task

Added by Oliver Hader over 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2009-05-06
Due date:
% Done:

0%

TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In indexed_search there's a hook defined that gets called from TSFE->headerNoCache() to determine whether the crawler is currently running. However, to do that simple check, the whole indexer PHP class file is loaded which could be avoided.

Thus, the method user for this hook gets extracted to a slim separate file.

Profiling tests show that this call took 10ms before and 1ms afterwards.

(issue imported from #M11033)

0011033.patch View (4.96 KB) Administrator Admin, 2009-05-06 15:42

History

#1 Updated by Oliver Hader over 10 years ago

Committed to SVN Trunk (rev. 5571)

Also available in: Atom PDF