Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit 7deac11

Browse files
committed
Added better exception handler for PhpfastcacheBackend exception
Added support for new drivers from lib Fixed bunch of bugs
1 parent f7871dd commit 7deac11

27 files changed

+807
-444
lines changed
+80-64
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,82 @@
1-
phpfastcache_enabled: false
2-
phpfastcache_env: prod
3-
phpfastcache_prefix: ''
1+
phpfastcache_enabled: true
2+
phpfastcache_env: dev
3+
phpfastcache_prefix: d8mstr
44
phpfastcache_default_ttl: 900
5-
phpfastcache_default_driver: files
6-
phpfastcache_bins: ['bootstrap', 'menu', 'discovery']
5+
phpfastcache_htaccess: true
6+
phpfastcache_default_driver: devnull
77
phpfastcache_drivers_config:
8-
apc: []
9-
apcu: []
10-
couchbase:
11-
host: '127.0.0.1'
12-
port: 8091
13-
username: ''
14-
password: ''
15-
bucket: 'default'
16-
bucket_password: 'default'
17-
devnull: []
18-
files:
19-
security_key: 'auto'
20-
path: ''
21-
htaccess: true
22-
leveldb:
23-
security_key: 'auto'
24-
path: ''
25-
htaccess: true
26-
memcache:
27-
host: '127.0.0.1'
28-
port: 11211
29-
sasl_username: ''
30-
sasl_password: ''
31-
memcached:
32-
host: '127.0.0.1'
33-
port: 11211
34-
sasl_username: ''
35-
sasl_password: ''
36-
mongodb:
37-
host: '127.0.0.1'
38-
port: 27017
39-
username: ''
40-
password: ''
41-
timeout: 5
42-
predis:
43-
host: '127.0.0.1'
44-
port: 6379
45-
password: ''
46-
timeout: 5
47-
dbindex: '0'
48-
redis:
49-
host: '127.0.0.1'
50-
port: 6379
51-
password: ''
52-
timeout: 5
53-
database: '0'
54-
sqlite:
55-
security_key: 'auto'
56-
path: ''
57-
htaccess: true
58-
ssdb:
59-
host: '127.0.0.1'
60-
port: 8888
61-
password: ''
62-
timeout: 5
63-
wincache: []
64-
xcache: []
65-
zenddisk: []
66-
zendshm: []
8+
apc: { }
9+
apcu: { }
10+
couchbase:
11+
host: 127.0.0.1
12+
port: 8091
13+
username: ggg
14+
password: ''
15+
bucket: default
16+
bucket_password: ''
17+
devnull: { }
18+
files:
19+
path: /tmp
20+
security_key: auto
21+
htaccess: true
22+
secure_file_manipulation: true
23+
cache_file_extension: txt
24+
leveldb:
25+
path: /tmp
26+
security_key: auto
27+
htaccess: true
28+
memcache:
29+
host: 127.0.0.1
30+
port: 11211
31+
sasl_username: ''
32+
sasl_password: ''
33+
memcached:
34+
host: 127.0.0.1
35+
port: 11211
36+
sasl_username: ''
37+
sasl_password: ''
38+
mongodb:
39+
host: 127.0.0.1
40+
port: 27017
41+
username: ''
42+
password: ''
43+
timeout: 5
44+
predis:
45+
host: 127.0.0.1
46+
port: 6379
47+
password: ''
48+
timeout: 5
49+
database: 0
50+
redis:
51+
host: localhost
52+
port: 6379
53+
password: ''
54+
timeout: 5
55+
database: 0
56+
sqlite:
57+
path: /tmp
58+
security_key: auto
59+
htaccess: true
60+
ssdb:
61+
host: 127.0.0.1
62+
port: 8888
63+
password: ''
64+
timeout: 5
65+
wincache: { }
66+
xcache: { }
67+
zenddisk: { }
68+
zendshm: { }
69+
couchdb:
70+
host: 127.0.0.1
71+
port: 5984
72+
ssl: false
73+
database: phpfastcache
74+
path: /
75+
username: ''
76+
password: ''
77+
timeout: 10
78+
riak:
79+
host: 127.0.0.1
80+
port: 8098
81+
prefix: riak
82+
bucket_name: phpfastcache

css/phpfastcache.admin.css

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* Basic CSS toolkit
3+
*/
4+
.text-right
5+
{
6+
text-align: right;
7+
}

phpfastcache.info.yml

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ type: module
33
description: 'Improve your website performances by setting up PhpFastCache components.'
44
package: Cache Control
55
core: 8.x
6+
version: 8.x-1.2
7+
php: 7.0.0
68
configure: phpfastcache.admin_settings_form

phpfastcache.libraries.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
phpfastcache.admin:
2+
version: VERSION
3+
# js:
4+
# js/block.admin.js: {}
5+
css:
6+
theme:
7+
css/phpfastcache.admin.css: {}
8+
dependencies: []

phpfastcache.services.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
services:
2+
phpfastcache_event_subscriber:
3+
class: Drupal\phpfastcache\EventSubscriber\PhpfastcacheSubscriber
4+
arguments: ['@cache.backend.phpfastcache']
5+
tags:
6+
- {name: event_subscriber}
27
cache.backend.phpfastcache:
3-
class: Drupal\phpfastcache\Cache\PhpFastCacheBackendFactory
8+
class: Drupal\phpfastcache\Cache\PhpfastcacheBackendFactory
49
arguments: ['@database']

0 commit comments

Comments
 (0)