Changeset View
Changeset View
Standalone View
Standalone View
core/units/admin/admin_events_handler.php
Show First 20 Lines • Show All 1160 Lines • ▼ Show 20 Line(s) | |||||
$system_tables = $this->Conn->GetCol('SHOW TABLES LIKE "' . TABLE_PREFIX . '%"'); | $system_tables = $this->Conn->GetCol('SHOW TABLES LIKE "' . TABLE_PREFIX . '%"'); | ||||
foreach ($system_tables AS $table_name) { | foreach ($system_tables AS $table_name) { | ||||
$this->Conn->Query('OPTIMIZE TABLE ' . $table_name); | $this->Conn->Query('OPTIMIZE TABLE ' . $table_name); | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* Deletes CachedUrls that have Hash equals to 0 | |||||
* | |||||
* @param kEvent $event Event. | |||||
* | |||||
* @return void | |||||
* @access protected | |||||
*/ | |||||
protected function OnDeleteExpiredCachedUrlsScheduledTask(kEvent $event) | |||||
Lint: CodingStandard.NamingConventions.ValidFunctionName.ScopeNotCamelCaps: Protected method name "AdminEventsHandler::OnDeleteExpiredCachedUrlsScheduledTask" is not in… | |||||
{ | |||||
$sql = 'DELETE FROM ' . TABLE_PREFIX . 'CachedUrls | |||||
Not Done ReplySQL isn't formatted correctly. alex: SQL isn't formatted correctly. | |||||
WHERE Hash = 0 | |||||
Not Done ReplyFor DELETE statements the DELETE FROM TableName part goes on 1st line. alex: For DELETE statements the `DELETE FROM TableName` part goes on 1st line. | |||||
LIMIT 500'; | |||||
do { | |||||
$this->Conn->Query($sql); | |||||
} while ( $this->Conn->getAffectedRows() == 500 ); | |||||
} | |||||
/** | |||||
* Returns popup size (by template), if not cached, then parse template to get value | * Returns popup size (by template), if not cached, then parse template to get value | ||||
* | * | ||||
* @param kEvent $event | * @param kEvent $event | ||||
* @return void | * @return void | ||||
* @access protected | * @access protected | ||||
*/ | */ | ||||
protected function OnGetPopupSize(kEvent $event) | protected function OnGetPopupSize(kEvent $event) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |
Protected method name "AdminEventsHandler::OnDeleteExpiredCachedUrlsScheduledTask" is not in camel caps format