Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit 729be8f

Browse files
committed
Admin configuration form (WIP)
1 parent ca06b21 commit 729be8f

File tree

5 files changed

+798
-621
lines changed

5 files changed

+798
-621
lines changed

‎config/install/phpfastcache.settings.yml‎

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,58 @@ phpfastcache_default_ttl: 900
33
phpfastcache_htaccess: true
44
phpfastcache_default_driver: files
55
phpfastcache_drivers_config:
6+
apc: []
7+
apcu: []
8+
couchbase:
9+
host: '127.0.0.1'
10+
username: ''
11+
password: ''
12+
bucket: 'default'
13+
bucket_password: 'default'
14+
devnull: []
615
files:
7-
securityKey: ''
16+
security_key: 'auto'
817
path: ''
9-
18+
leveldb:
19+
security_key: 'auto'
20+
path: ''
21+
memcache:
22+
host: '127.0.0.1'
23+
port: 11211
24+
sasl_username: ''
25+
sasl_password: ''
26+
memcached:
27+
host: '127.0.0.1'
28+
port: 11211
29+
sasl_username: ''
30+
sasl_password: ''
31+
mongodb:
32+
host: '127.0.0.1'
33+
port: 27017
34+
username: ''
35+
password: ''
36+
timeout: 5
37+
predis:
38+
host: '127.0.0.1'
39+
port: 6379
40+
password: ''
41+
timeout: 5
42+
dbindex: '0'
43+
redis:
44+
host: '127.0.0.1'
45+
port: 6379
46+
password: ''
47+
timeout: 5
48+
dbindex: '0'
49+
sqlite:
50+
security_key: 'auto'
51+
path: ''
52+
ssdb:
53+
host: '127.0.0.1'
54+
port: 8888
55+
password: ''
56+
timeout: 5
57+
wincache: []
58+
xcache: []
59+
zenddisk: []
60+
zendshm: []

‎phpfastcache.module‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
use Drupal\Core\Routing\RouteMatchInterface;
44

5+
require_once __DIR__ . '/phpfastcache-php/src/autoload.php';
6+
57
/**
68
* Implements hook_help().
79
*/

‎src/Cache/PhpFastCacheBackend.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __construct($bin, $cachePool, CacheTagsChecksumInterface $checks
5353
* @param \Drupal\Core\Cache\CacheTagsChecksumInterface $checksum_provider
5454
* The cache tags checksum provider.
5555
*/
56-
require_once __DIR__ . '/../../phpfastcache-php/src/autoload.php';
56+
//require_once __DIR__ . '/../../phpfastcache-php/src/autoload.php';
5757

5858
$this->cachePool = $cachePool;
5959
$this->bin = $bin;
@@ -203,7 +203,7 @@ public function invalidateMultiple(array $cids)
203203
*/
204204
public function invalidateAll()
205205
{
206-
throw new UnsupportedMethodException('Method invalidateAll() is currently not supported by PhpFastCache as there no way to list items in cache');
206+
//throw new UnsupportedMethodException('Method invalidateAll() is currently not supported by PhpFastCache as there no way to list items in cache');
207207
}
208208

209209
/**

‎src/Cache/PhpFastCacheBackendFactory.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ public function __construct(Connection $connection, CacheTagsChecksumInterface $
7373
*
7474
* Let's dying miserably by showing a simple but efficient message
7575
*/
76-
die('PhpFastCache is not enabled, please go to <strong>admin/config/development/phpfastcache</strong> then configure PhpFastCache.');
76+
//die('PhpFastCache is not enabled, please go to <strong>admin/config/development/phpfastcache</strong> then configure PhpFastCache.');
7777
}
7878
else
7979
{
80-
$this->backendClass = 'Drupal\phpfastcache\Cache\PhpFastCacheVoidBackend';
80+
//$this->backendClass = 'Drupal\phpfastcache\Cache\PhpFastCacheVoidBackend';
8181
}
8282
}
8383
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /