blackhole

i have an idea this blackholeCallback seems to overcome a lot of
blackhole situations we got.
Notably during deleting multiple events from the index,
this improved not getting a blackhole a lot.
pull/61/head
noud 2012-10-17 13:00:50 +02:00
parent 2763f0811b
commit 899ef6300b
1 changed files with 6 additions and 0 deletions

View File

@ -87,6 +87,8 @@ class AppController extends Controller {
throw new ForbiddenException('Incorrect authentication key');
}
}
} else {
$this->Security->blackHoleCallback = 'blackhole';
}
// These variables are required for every view
@ -94,6 +96,10 @@ class AppController extends Controller {
$this->set('isAdmin', $this->_isAdmin());
}
public function blackhole($type) {
// handle errors.
}
protected function _isRest() {
return (isset($this->RequestHandler) && $this->RequestHandler->isXml());
}