Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
apc
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
apc
Commits
e6f7de68
Commit
e6f7de68
authored
6 months ago
by
Alberto Paderno
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3470071
: Document the lock backend
parent
240e38e5
No related branches found
No related tags found
1 merge request
!73
Issue #3470071: Document the lock backend
Pipeline
#263551
passed
6 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+26
-6
26 additions, 6 deletions
README.md
with
26 additions
and
6 deletions
README.md
+
26
−
6
View file @
e6f7de68
# Alternative PHP Cache
The Alternative PHP Cache module integrates the APCu extension with Drupal,
either as cache backend (already implemented) or as lock backend (still to
implement).
either as cache backend or as lock backend.
## Table of contents
...
...
@@ -30,9 +29,13 @@ information, see
## Configuration
The module has no menu or modifiable settings.
Most of the configuration values are stored in the settings.php file. At least
the following line must be added in the settings.php file to use this module as
cache backend. (Correct the path if necessary.)
Most of the configuration values are stored in the settings.php file.
### Cache backend
At least the following line must be added in the settings.php file to use this
module as cache backend. (Replace
`'sites/all/modules/apc'`
with the path for
the module, in the case the module is installed in a different directory.)
```
php
$conf
[
'cache_backends'
][]
=
'sites/all/modules/apc/drupal_apc_cache.inc'
;
...
...
@@ -98,7 +101,24 @@ The Alternative PHP Cache module uses the database information to avoid
conflicts in case of multi-site installations, but setting
`$conf['apc_cache_prefix']`
can help to further avoid conflicts.
Finally, to enable debugging, add the following line.
### Lock backend
To use the lock backend implemented by the Alternative PHP Cache module, the
following lines need to be added in the settings.php file. (Replace
`'sites/all/modules/apc'`
with the path for the module, in the case the module
is installed in a different directory.)
```
php
$conf
[
'lock_inc'
]
=
'sites/all/modules/apc/drupal_apc_lock.inc'
;
```
Differently from cache backends, only a single lock backend can be used at time.
The lock backend does not have settings.
### Other settings
To enable debugging, add the following line.
```
php
$conf
[
'apc_show_debug'
]
=
TRUE
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment