Closed (fixed)
Project:
Alternative PHP Cache
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2014 at 11:55 UTC
Updated:
15 Dec 2024 at 21:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gielfeldt commentedHere's a patch.
Comment #2
mikeytown2 commentedComment #3
avpadernoComment #6
prem suthar commentedComment #7
avpadernoThank you for creating a merge request!
This issue has been tagged with Needs reroll because the patch needed to be re-written to use functions exposed from the APCu extension, not from the APC extension, which is no longer developed nor supported.
There are also other changes that need to be done.
For example, there is probably no need to keep a list of locks as global variable, and there is probably no need to have a shutdown callback to remove all the locks that are still not expired. APCu associates a TTL to its values; after the TTL is passed, the value is automatically purged.
Comment #8
avpadernoComment #9
avpadernoActually, without editing the settings.php file, it is not possible to set a different lock back-end.
When tests are executed, Drupal core already loaded the includes/lock.inc file. Loading another file that defines the same functions contained in that file, as required to implement a lock back-end, causes errors like Cannot redeclare lock_initialize().
Comment #11
avpadernoComment #12
avpadernoComment #16
avpaderno