Index: branches/5.1.x/core/kernel/application.php =================================================================== diff -u -r13635 -r13780 --- branches/5.1.x/core/kernel/application.php (.../application.php) (revision 13635) +++ branches/5.1.x/core/kernel/application.php (.../application.php) (revision 13780) @@ -1,6 +1,6 @@ setCache($serial_name, (int)$this->getCache($serial_name) + 1); } - // delete cached mod-rewrite urls related to given prefix and id - $delete_clause = isset($id) ? $prefix . ':' . $id : $prefix; + if (!defined('IS_INSTALL') || !IS_INSTALL) { + // delete cached mod-rewrite urls related to given prefix and id + $delete_clause = isset($id) ? $prefix . ':' . $id : $prefix; - $sql = 'DELETE FROM ' . TABLE_PREFIX . 'CachedUrls - WHERE Prefixes LIKE ' . $this->Conn->qstr('%|' . $delete_clause . '|%'); - $this->Conn->Query($sql); + $sql = 'DELETE FROM ' . TABLE_PREFIX . 'CachedUrls + WHERE Prefixes LIKE ' . $this->Conn->qstr('%|' . $delete_clause . '|%'); + $this->Conn->Query($sql); + } } return $serial_name;