mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +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
|
|
@ -366,11 +366,17 @@ class Context
|
|||
// start session
|
||||
if (\PHP_SAPI !== 'cli')
|
||||
{
|
||||
Rhymix\Framework\Session::checkSSO($site_module_info);
|
||||
Rhymix\Framework\Session::start(false);
|
||||
if (!session_cache_limiter())
|
||||
if (!isset(self::$_route_info->session) || self::$_route_info->session)
|
||||
{
|
||||
self::setCacheControl(0);
|
||||
Rhymix\Framework\Session::checkSSO($site_module_info);
|
||||
Rhymix\Framework\Session::start(false);
|
||||
}
|
||||
if (!isset(self::$_route_info->cache_control) || self::$_route_info->cache_control)
|
||||
{
|
||||
if (!session_cache_limiter())
|
||||
{
|
||||
self::setCacheControl(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue