Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/admin/admin_events_handler.php
Show First 20 Lines • Show All 1213 Lines • ▼ Show 20 Line(s) | |||||
if ( defined('DBG_REQUEST_LOG') && DBG_REQUEST_LOG && $this->Application->LoggedIn() ) { | if ( defined('DBG_REQUEST_LOG') && DBG_REQUEST_LOG && $this->Application->LoggedIn() ) { | ||||
$log = $this->Application->log('HTTP_REQUEST')->addRequestData(); | $log = $this->Application->log('HTTP_REQUEST')->addRequestData(); | ||||
if ( !$log->write() ) { | if ( !$log->write() ) { | ||||
trigger_error('Unable to log Http Request due disabled "System Log"', E_USER_WARNING); | trigger_error('Unable to log Http Request due disabled "System Log"', E_USER_WARNING); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
/** | |||||
* Purges expired database cache entries. | |||||
* | |||||
* @param kEvent $event Event. | |||||
* | |||||
* @return void | |||||
*/ | |||||
protected function OnPurgeExpiredDatabaseCacheScheduledTask(kEvent $event) | |||||
{ | |||||
$sql = 'DELETE FROM ' . TABLE_PREFIX . 'SystemCache | |||||
WHERE LifeTime > 0 AND Cached + LifeTime < ' . time(); | |||||
$this->Conn->Query($sql); | |||||
} | |||||
} | } | ||||
class UnitConfigDecorator { | class UnitConfigDecorator { | ||||
var $parentPath = Array (); | var $parentPath = Array (); | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |