@@ -185,9 +185,9 @@ |
||
| 185 | 185 | protected static function cleanFileName($filename) |
| 186 | 186 | { |
| 187 | 187 | $regex = [ |
| 188 | - '/[\?\[\]\/\\\=\<\>\:\;\,\'\"\&\$\#\*\(\)\|\~\`\!\{\}]/', |
|
| 189 | - '/\.$/', |
|
| 190 | - '/^\./', |
|
| 188 | + '/[\?\[\]\/\\\=\<\>\:\;\,\'\"\&\$\#\*\(\)\|\~\`\!\{\}]/', |
|
| 189 | + '/\.$/', |
|
| 190 | + '/^\./', |
|
| 191 | 191 | ]; |
| 192 | 192 | $replace = ['-', '', '']; |
| 193 | 193 | |
@@ -51,13 +51,13 @@ discard block |
||
| 51 | 51 | * @var array |
| 52 | 52 | */ |
| 53 | 53 | protected static $config = [ |
| 54 | - 'securityKey' => 'auto',// The securityKey that will be used to create sub-directory |
|
| 55 | - 'htaccess' => true,// Auto-generate .htaccess if tit is missing |
|
| 56 | - 'default_chmod' => 0777, // 0777 recommended |
|
| 57 | - 'path' => '',// if not set will be the value of sys_get_temp_dir() |
|
| 58 | - 'fallback' => false, //Fall back when old driver is not support |
|
| 59 | - 'limited_memory_each_object' => 4096, // maximum size (bytes) of object store in memory |
|
| 60 | - 'compress_data' => false, // compress stored data, if the backend supports it |
|
| 54 | + 'securityKey' => 'auto',// The securityKey that will be used to create sub-directory |
|
| 55 | + 'htaccess' => true,// Auto-generate .htaccess if tit is missing |
|
| 56 | + 'default_chmod' => 0777, // 0777 recommended |
|
| 57 | + 'path' => '',// if not set will be the value of sys_get_temp_dir() |
|
| 58 | + 'fallback' => false, //Fall back when old driver is not support |
|
| 59 | + 'limited_memory_each_object' => 4096, // maximum size (bytes) of object store in memory |
|
| 60 | + 'compress_data' => false, // compress stored data, if the backend supports it |
|
| 61 | 61 | ]; |
| 62 | 62 | |
| 63 | 63 | /** |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | } |
| 106 | 106 | } |
| 107 | 107 | } else if(++$badPracticeOmeter[$driver] >= 5){ |
| 108 | - trigger_error('[' . $driver . '] Calling many times CacheManager::getInstance() for already instanced drivers is a bad practice and have a significant impact on performances. |
|
| 108 | + trigger_error('[' . $driver . '] Calling many times CacheManager::getInstance() for already instanced drivers is a bad practice and have a significant impact on performances. |
|
| 109 | 109 | See https://github.com/PHPSocialNetwork/phpfastcache/wiki/[V5]-Why-calling-getInstance%28%29-each-time-is-a-bad-practice-%3F'); |
| 110 | 110 | } |
| 111 | 111 | |
@@ -218,21 +218,21 @@ discard block |
||
| 218 | 218 | public static function getStaticSystemDrivers() |
| 219 | 219 | { |
| 220 | 220 | return [ |
| 221 | - 'Sqlite', |
|
| 222 | - 'Files', |
|
| 223 | - 'Apc', |
|
| 224 | - 'Apcu', |
|
| 225 | - 'Memcache', |
|
| 226 | - 'Memcached', |
|
| 227 | - 'Couchbase', |
|
| 228 | - 'Mongodb', |
|
| 229 | - 'Predis', |
|
| 230 | - 'Redis', |
|
| 231 | - 'Ssdb', |
|
| 232 | - 'Leveldb', |
|
| 233 | - 'Wincache', |
|
| 234 | - 'Xcache', |
|
| 235 | - 'Devnull', |
|
| 221 | + 'Sqlite', |
|
| 222 | + 'Files', |
|
| 223 | + 'Apc', |
|
| 224 | + 'Apcu', |
|
| 225 | + 'Memcache', |
|
| 226 | + 'Memcached', |
|
| 227 | + 'Couchbase', |
|
| 228 | + 'Mongodb', |
|
| 229 | + 'Predis', |
|
| 230 | + 'Redis', |
|
| 231 | + 'Ssdb', |
|
| 232 | + 'Leveldb', |
|
| 233 | + 'Wincache', |
|
| 234 | + 'Xcache', |
|
| 235 | + 'Devnull', |
|
| 236 | 236 | ]; |
| 237 | 237 | } |
| 238 | 238 | |