-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathobject-cache.php
More file actions
36 lines (30 loc) · 1.06 KB
/
object-cache.php
File metadata and controls
36 lines (30 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* Bootstrap for Object Cache implementations
*
* Place this file at /wp-content/object-cache.php
* Either by coping, symlinking or moving the file.
*/
if (PHP_VERSION_ID < 50400) {
printf('wp-multi-object-cache requires at least PHP 5.4, you are running %s.', PHP_VERSION);
exit;
}
// Make sure the repository checkout location matches this location:
$base_path = __DIR__ . 'mu-plugins/wp-multi-object-cache';
if (! is_dir($base_path)) {
printf(
'Please modify the $base_path variable in %s to match the folder ' .
'in which you have checked out the wp-multi-object-cache repository.',
__FILE__
);
exit;
}
if (is_dir($base_path) && ! is_dir($base_path . '/vendor/')) {
printf('Please run `composer install` to generate the %s/vendor/ folder.', $base_path);
echo PHP_EOL;
printf('If you don\'t have composer installed, please see https://getcomposer.org for installation instructions.');
exit;
}
require_once $base_path . '/vendor/autoload.php';
require_once $base_path . '/api.php';
unset($base_path);