Translations of this page?:

Page locking

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 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 unlock() function.

Checking for an existing lock is handled by the checklock() function. This function will also take care of removing stale lock files.

 
devel/locking.txt · Last modified: 2008/10/03 18:31 by andi
 

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported

Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsDarcsXRefTranslate