Config for ajax debug and apc cache usage
This commit is contained in:
5
application/classes/cache.php
Normal file
5
application/classes/cache.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
class Cache extends Kohana_Cache {
|
||||
public static $default = 'apc';
|
||||
}
|
||||
?>
|
@@ -82,9 +82,8 @@ abstract class lnApp_Controller_TemplateDefault extends Controller_Template {
|
||||
return;
|
||||
}
|
||||
|
||||
$TEST = FALSE;
|
||||
// Actions that start with ajax, should only be ajax
|
||||
if (preg_match('/^ajax/',Request::current()->action()) AND ! Request::current()->is_ajax() AND ! $TEST)
|
||||
if (! Kohana::Config('debug.ajax') AND preg_match('/^ajax/',Request::current()->action()) AND ! Request::current()->is_ajax())
|
||||
die();
|
||||
|
||||
parent::before();
|
||||
|
Reference in New Issue
Block a user