2014-05-14 23:24:20 +10:00
|
|
|
<?php
|
|
|
|
|
2015-02-04 20:03:44 +11:00
|
|
|
return [
|
2014-05-14 23:24:20 +10:00
|
|
|
|
2014-10-10 21:54:19 +02:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
2015-02-04 20:03:44 +11:00
|
|
|
| Default Cache Store
|
2014-10-10 21:54:19 +02:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
2015-02-04 20:03:44 +11:00
|
|
|
| This option controls the default cache connection that gets used while
|
|
|
|
| using this caching library. This connection is used when another is
|
|
|
|
| not explicitly specified when executing a given caching function.
|
2014-10-10 21:54:19 +02:00
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2015-02-07 13:27:01 +11:00
|
|
|
'default' => 'file',
|
2014-10-10 21:54:19 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
2015-02-04 20:03:44 +11:00
|
|
|
| Cache Stores
|
2014-10-10 21:54:19 +02:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
2015-02-04 20:03:44 +11:00
|
|
|
| Here you may define all of the cache "stores" for your application as
|
|
|
|
| well as their drivers. You may even define multiple stores for the
|
|
|
|
| same cache driver to group types of items stored in your caches.
|
2014-10-10 21:54:19 +02:00
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2015-02-04 20:03:44 +11:00
|
|
|
'stores' => [
|
2014-10-10 21:54:19 +02:00
|
|
|
|
2015-02-04 20:03:44 +11:00
|
|
|
'apc' => [
|
|
|
|
'driver' => 'apc'
|
|
|
|
],
|
2014-10-10 21:54:19 +02:00
|
|
|
|
2015-02-04 20:03:44 +11:00
|
|
|
'array' => [
|
|
|
|
'driver' => 'array'
|
|
|
|
],
|
2014-10-10 21:54:19 +02:00
|
|
|
|
2015-02-04 20:03:44 +11:00
|
|
|
'database' => [
|
|
|
|
'driver' => 'database',
|
|
|
|
'table' => 'cache',
|
|
|
|
'connection' => null,
|
|
|
|
],
|
2014-10-10 21:54:19 +02:00
|
|
|
|
2015-02-04 20:03:44 +11:00
|
|
|
'file' => [
|
|
|
|
'driver' => 'file',
|
2016-01-02 15:41:27 +01:00
|
|
|
'path' => storage_path('framework/cache'),
|
2015-02-04 20:03:44 +11:00
|
|
|
],
|
2014-10-10 21:54:19 +02:00
|
|
|
|
2015-02-04 20:03:44 +11:00
|
|
|
'memcached' => [
|
|
|
|
'driver' => 'memcached',
|
|
|
|
'servers' => [
|
|
|
|
[
|
2017-10-13 16:58:46 +02:00
|
|
|
'host' => '127.0.0.1',
|
|
|
|
'port' => 11211,
|
|
|
|
'weight' => 100,
|
2015-02-04 20:03:44 +11:00
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2014-10-10 21:54:19 +02:00
|
|
|
|
2015-02-04 20:03:44 +11:00
|
|
|
'redis' => [
|
|
|
|
'driver' => 'redis',
|
|
|
|
'connection' => 'default',
|
|
|
|
],
|
2014-10-10 21:54:19 +02:00
|
|
|
|
2015-02-04 20:03:44 +11:00
|
|
|
],
|
2014-10-10 21:54:19 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Cache Key Prefix
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| When utilizing a RAM based store such as APC or Memcached, there might
|
|
|
|
| be other applications utilizing the same cache. So, we'll specify a
|
|
|
|
| value to get prefixed to all our keys so we can avoid collisions.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2021-03-10 15:02:53 -06:00
|
|
|
'prefix' => 'winter',
|
2014-05-14 23:24:20 +10:00
|
|
|
|
2018-06-05 19:10:35 +03:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Cache Key for the CMS' PHP code parser cache
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This option controls the cache key used by the CMS when storing generated
|
|
|
|
| PHP from the theme PHP sections. Recommended to change this when multiple
|
2021-03-10 15:02:53 -06:00
|
|
|
| servers running Winter CMS are connected to the same cache server to
|
2018-06-05 19:10:35 +03:00
|
|
|
| prevent conflicts.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'codeParserDataCacheKey' => 'cms-php-file-data',
|
|
|
|
|
2018-03-28 20:34:43 +02:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Disable Request Cache
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| The request cache stores cache retrievals from the cache store
|
|
|
|
| in memory to speed up consecutive retrievals within the same request.
|
2019-05-07 12:34:46 -06:00
|
|
|
|
|
|
|
|
| true - always disable this in-memory request cache
|
|
|
|
|
|
|
|
|
| false - always enable; be aware that long-running console commands
|
|
|
|
| (including queue workers) may retain cache entries in memory that
|
|
|
|
| have been changed in other processes or would have otherwise
|
|
|
|
| expired, causing issues with the `queue:restart` command, for
|
|
|
|
| example
|
|
|
|
|
|
|
|
|
| null - enable for HTTP requests, disable when running in CLI
|
2018-03-28 20:34:43 +02:00
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2019-05-07 12:34:46 -06:00
|
|
|
'disableRequestCache' => null,
|
2017-04-24 13:38:19 +02:00
|
|
|
];
|