mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
If cache-friendly behavior is enabled, don't update session when reading document or comment
This commit is contained in:
parent
1c5424358d
commit
caf01354df
3 changed files with 12 additions and 2 deletions
|
|
@ -843,6 +843,9 @@ class documentController extends document
|
|||
$trigger_output = ModuleHandler::triggerCall('document.updateReadedCount', 'before', $oDocument);
|
||||
if(!$trigger_output->toBool()) return $trigger_output;
|
||||
|
||||
// Pass if cache-friendly mode is enabled and session is not started
|
||||
if(Context::getInstance()->isSessionStarted == FALSE) return false;
|
||||
|
||||
// Pass if read count is increaded on the session information
|
||||
if($_SESSION['readed_document'][$document_srl]) return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue