If cache-friendly behavior is enabled, don't update session when reading document or comment

This commit is contained in:
Kijin Sung 2015-07-12 15:13:12 +09:00
parent 1c5424358d
commit caf01354df
3 changed files with 12 additions and 2 deletions

View file

@ -131,7 +131,10 @@ class commentItem extends Object
function setAccessible()
{
$_SESSION['accessibled_comment'][$this->comment_srl] = TRUE;
if(Context::getInstance()->isSessionStarted)
{
$_SESSION['accessibled_comment'][$this->comment_srl] = TRUE;
}
}
function isEditable()