Project

General

Profile

Actions

Bug #23247

closed

Speedup t3lib_cache_backend_DbBackend::has($entryIdentifier)

Added by Michael Knabe almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Caching
Target version:
-
Start date:
2010-07-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Currently t3lib_cache_backend_DbBackend::has($entryIdentifier) gets the rows from SQL and runs php-count on the result set.
If you replace that with sql_num_rows that method becomes 1.5 times as fast in my measurements.

Although this is not a big issue as long as you don't call has() very often I think we should patch that.

(issue imported from #M15196)


Files

15196_v1.diff (837 Bytes) 15196_v1.diff Administrator Admin, 2010-07-21 16:17
15196_v4.diff (1.28 KB) 15196_v4.diff Administrator Admin, 2010-07-27 01:01
Actions #1

Updated by Christian Kuhn almost 14 years ago

Committed v4 to:
  • trunk rev. 8278
  • 4.4 rev. 8279
  • 4.3 rev. 8280
Actions

Also available in: Atom PDF