mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
Add options in module.xml to disable session and Cache-Control headers for individual actions
This commit is contained in:
parent
3722c49750
commit
ec36839303
3 changed files with 18 additions and 4 deletions
|
|
@ -190,6 +190,8 @@ class ModuleActionParser extends BaseParser
|
|||
$action_info->standalone = $standalone;
|
||||
$action_info->check_csrf = self::_getAttributeString($action, 'check-csrf') === 'false' ? 'false' : 'true';
|
||||
$action_info->meta_noindex = self::_getAttributeString($action, 'meta-noindex') === 'true' ? 'true' : 'false';
|
||||
$action_info->session = self::_getAttributeString($action, 'session') === 'false' ? 'false' : 'true';
|
||||
$action_info->cache_control = self::_getAttributeString($action, 'cache-control') === 'false' ? 'false' : 'true';
|
||||
$action_info->global_route = $global_route;
|
||||
$info->action->{$action_name} = $action_info;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue