Modify ↓
#826 closed Erweiterung (fixed)
Sonderpreise - xtcCheckSpecials() - Performance
| Reported by: | Volker Strähle | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.5.0 |
| Component: | Shop | Version: | 2.0.1.0 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
die Funktion xtcCheckSpecials() in includes/classes/xtcPrice.php:
function xtcCheckSpecial($pID) {
if ($this->cStatus['customers_status_specials'] == '1') {
$product_query = xtDBquery("SELECT specials_new_products_price
FROM ".TABLE_SPECIALS."
WHERE products_id = '".$pID."'
AND status = 1
AND (start_date IS NULL
OR start_date <= NOW())
AND (expires_date >= NOW() OR expires_date IS NULL)");
if (xtc_db_num_rows($product_query, true) > 0) {
....
und in der DB dazu passend:
ALTER TABLE `specials` ADD INDEX(`start_date`); ALTER TABLE `specials` ADD INDEX(`expires_date`);
Attachments (0)
Change History (5)
comment:1 by , 8 years ago
| Milestone: | modified-shop-2.1.0.0 |
|---|
comment:2 by , 6 years ago
| Milestone: | → modified-shop-2.0.5.0 |
|---|
comment:3 by , 6 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

In 11975: