Needs work
Project:
Cache Router
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Jul 2010 at 08:39 UTC
Updated:
26 Jan 2011 at 00:50 UTC
Rather than using our own lock system, we should just the use the one that comes with Drupal 6.16, if its around.
Attached is a patch that does just that.
This will fix the issue that the locking system doesn't really work on Windows.
| Comment | File | Size | Author |
|---|---|---|---|
| cacherouter-lock.patch | 1.33 KB | steven jones |
Comments
Comment #1
andypostIt's impossible to work with db-locking because cacherouter operates before DB initialized
So this could be applied only for DB engine
Comment #2
miro_dietikerFrom what i understood, drupal core locking system (lock_acquire, lock_release) is a locking system that is intended to be low-volume.
Typically it is used for rebuilds that need to be done in rare cases.
I'd expect using this locking system could even lead to worse experience than without cacherouter:
Every write to the cache would result in acquiring a lock.
However, even getting cache content results in acquiring a lock for every key. (function get())..
Thus - to potentially avoid a DB query and fetching the cache, we'd initiate an additional DB query (lock_acquire) plus the addioverhead setup.
Am i wrong?