Changeset View
Changeset View
Standalone View
Standalone View
core/kernel/managers/cache_manager.php
Show First 20 Lines • Show All 796 Lines • ▼ Show 20 Line(s) | |||||
$this->Application->Debugger->appendHTML('Incrementing serial: <strong>' . $serial_name . '</strong>.'); | $this->Application->Debugger->appendHTML('Incrementing serial: <strong>' . $serial_name . '</strong>.'); | ||||
} | } | ||||
$this->setCache($serial_name, (int)$this->getCache($serial_name) + 1); | $this->setCache($serial_name, (int)$this->getCache($serial_name) + 1); | ||||
if (!defined('IS_INSTALL') || !IS_INSTALL) { | if (!defined('IS_INSTALL') || !IS_INSTALL) { | ||||
// delete cached mod-rewrite urls related to given prefix and id | // delete cached mod-rewrite urls related to given prefix and id | ||||
$delete_clause = isset($id) ? $prefix . ':' . $id : $prefix; | $delete_clause = isset($id) ? $prefix . ':' . $id : $prefix; | ||||
$this->Conn->doUpdate( | |||||
$sql = 'DELETE FROM ' . TABLE_PREFIX . 'CachedUrls | array('Url' => '', 'Hash' => 0), | ||||
alex: Test plan doesn't cover asserting that `Url` field is also empty. | |||||
WHERE Prefixes LIKE ' . $this->Conn->qstr('%|' . $delete_clause . '|%'); | TABLE_PREFIX . 'CachedUrls', | ||||
$this->Conn->Query($sql); | 'Prefixes LIKE ' . $this->Conn->qstr('%|' . $delete_clause . '|%') | ||||
); | |||||
} | } | ||||
} | } | ||||
return $serial_name; | return $serial_name; | ||||
} | } | ||||
/** | /** | ||||
* Returns cached category informaton by given cache name. All given category | * Returns cached category informaton by given cache name. All given category | ||||
Show All 37 Lines |
Test plan doesn't cover asserting that Url field is also empty.