You are here: Foswiki>Tasks Web>Item14732 (28 Mar 2022, MichaelDaum)Edit Attach

Item14732: statistics script blocks all of foswiki

pencil
Priority: Urgent
Current State: Closed
Released In: 2.1.7
Target Release: patch
Applies To: Engine
Component:
Branches: master Release02x01
Reported By: MichaelDaum
Waiting For:
Last Change By: MichaelDaum
As long as somebody iterates over the event log files, i.e. the latest one - event.log no other request will be answered due to the file being locked.

Is this really required?

Related:

-- MichaelDaum - 15 Jun 2018

Talking to George, we a greed to remove the reader lock by default, but optionally allow locking again:

Foswiki::Func::eachEventSince($time, $params)

with options in a params hash

level => ...
api => ...
lock => undef / 'LOCK_SH' / 'LOCK_EX'

-- MichaelDaum - 22 Jun 2018
 
Topic revision: r6 - 28 Mar 2022, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy