DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:locking

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
devel:locking [2008-10-03 18:31] andidevel:locking [2014-04-20 14:14] 86.169.236.130
Line 1: Line 1:
 ====== Page locking ====== ====== Page locking ======
- +gay
-The page locking mechanism is based around a .lock file that temporarily exists within the dokuwiki/data/locks directory.  +
- +
-When a page is edited, a .lock file is created by the [[xref>lock()]] function. The name of this file is determined through the ID of the page that is requested to be locked, hashed by MD5. This file is written with, as content, the USER_NAME or the client IP. +
- +
-The release of a lock is done by deleting the .lock file. This is achieved by the [[xref>unlock()]] function. +
- +
-Checking for an existing lock is handled by the [[xref>checklock()]] function. This function will also take care of removing stale lock files. +
devel/locking.txt · Last modified: 2014-04-20 17:21 by 2001:4dd0:ff00:8eb9:2514:1931:19a7:1575

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki