forked from statamic/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstache.php
127 lines (103 loc) · 3.52 KB
/
stache.php
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php
use Statamic\Stache\Stores;
return [
/*
|--------------------------------------------------------------------------
| File Watcher
|--------------------------------------------------------------------------
|
| File changes will be noticed and data will be updated accordingly.
| This can be disabled to reduce overhead, but you will need to
| either update the cache manually or use the Control Panel.
|
*/
'watcher' => env('STATAMIC_STACHE_WATCHER', true),
/*
|--------------------------------------------------------------------------
| Stores
|--------------------------------------------------------------------------
|
| Here you may configure the stores that are used inside the Stache.
|
| https://statamic.dev/stache#stores
|
*/
'stores' => [
'taxonomies' => [
'class' => Stores\TaxonomiesStore::class,
'directory' => base_path('content/taxonomies'),
],
'terms' => [
'class' => Stores\TermsStore::class,
'directory' => base_path('content/taxonomies'),
],
'collections' => [
'class' => Stores\CollectionsStore::class,
'directory' => base_path('content/collections'),
],
'entries' => [
'class' => Stores\EntriesStore::class,
'directory' => base_path('content/collections'),
],
'navigation' => [
'class' => Stores\NavigationStore::class,
'directory' => base_path('content/navigation'),
],
'collection-trees' => [
'class' => Stores\CollectionTreeStore::class,
'directory' => base_path('content/trees/collections'),
],
'nav-trees' => [
'class' => Stores\NavTreeStore::class,
'directory' => base_path('content/trees/navigation'),
],
'globals' => [
'class' => Stores\GlobalsStore::class,
'directory' => base_path('content/globals'),
],
'global-variables' => [
'class' => Stores\GlobalVariablesStore::class,
'directory' => base_path('content/globals'),
],
'asset-containers' => [
'class' => Stores\AssetContainersStore::class,
'directory' => base_path('content/assets'),
],
'assets' => [
'class' => Stores\AssetsStore::class,
],
'users' => [
'class' => Stores\UsersStore::class,
'directory' => base_path('users'),
],
],
/*
|--------------------------------------------------------------------------
| Indexes
|--------------------------------------------------------------------------
|
| Here you may define any additional indexes that will be inherited
| by each store in the Stache. You may also define indexes on a
| per-store level by adding an "indexes" key to its config.
|
*/
'indexes' => [
//
],
/*
|--------------------------------------------------------------------------
| Locking
|--------------------------------------------------------------------------
|
| In order to prevent concurrent requests from updating the Stache at the
| same time and wasting resources, it will be locked so that subsequent
| requests will have to wait until the first one has been completed.
|
| https://statamic.dev/stache#locks
|
*/
'lock' => [
'enabled' => true,
'timeout' => 30,
],
];