[TYPO3-dev] Released/Acquired lock
Ingmar Schlecht
ingmar at typo3.org
Mon Apr 28 13:47:17 CEST 2008
Hi John,
John Angel wrote:
> Is there some documentation what is this Released/Acquired lock used for exactly?
>
I don't think so.
In general, it is used to prevent problems when two people hit your page
at exactly the same time. To reduce the load on the server, the locking
mechanism makes the one process write a "lock file" and then the other
process sees that another process is already working on generating the
page and just waits until the first process finishes, so the second one
can then just take the page content from the cache.
The whole thing works with UNIX file pointers, so it actually uses some
PHP functions to work with the OS' file locking mechanisms.
This whole feature has been integrated into TYPO3 4.2 in order to get
rid of the annoying "Page is being generated" message altogether.
cheers
Ingmar
--
Ingmar Schlecht
TYPO3 Association Active Member
More information about the TYPO3-dev
mailing list