Guest User

stache.php

a guest
Sep 25th, 2023
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.43 KB | None | 0 0
  1. <?php
  2.  
  3. use Statamic\Stache\Stores;
  4.  
  5. return [
  6.  
  7.     /*
  8.     |--------------------------------------------------------------------------
  9.     | File Watcher
  10.     |--------------------------------------------------------------------------
  11.     |
  12.     | File changes will be noticed and data will be updated accordingly.
  13.     | This can be disabled to reduce overhead, but you will need to
  14.     | either update the cache manually or use the Control Panel.
  15.     |
  16.     */
  17.  
  18.     'watcher' => env('STATAMIC_STACHE_WATCHER', false),
  19.  
  20.     /*
  21.     |--------------------------------------------------------------------------
  22.     | Stores
  23.     |--------------------------------------------------------------------------
  24.     |
  25.     | Here you may configure which stores are used inside the Stache.
  26.     |
  27.     */
  28.  
  29.     'stores' => [
  30.  
  31.         'taxonomies' => [
  32.             'class' => Stores\TaxonomiesStore::class,
  33.             'directory' => base_path('content/taxonomies'),
  34.         ],
  35.  
  36.         'terms' => [
  37.             'class' => Stores\TermsStore::class,
  38.             'directory' => base_path('content/taxonomies'),
  39.         ],
  40.  
  41.         'collections' => [
  42.             'class' => Stores\CollectionsStore::class,
  43.             'directory' => base_path('content/collections'),
  44.         ],
  45.  
  46.         'entries' => [
  47.             'class' => Stores\EntriesStore::class,
  48.             'directory' => base_path('content/collections'),
  49.         ],
  50.  
  51.         'navigation' => [
  52.             'class' => Stores\NavigationStore::class,
  53.             'directory' => base_path('content/navigation'),
  54.         ],
  55.  
  56.         'collection-trees' => [
  57.             'class' => Stores\CollectionTreeStore::class,
  58.             'directory' => base_path('content/trees/collections'),
  59.         ],
  60.  
  61.         'nav-trees' => [
  62.             'class' => Stores\NavTreeStore::class,
  63.             'directory' => base_path('content/trees/navigation'),
  64.         ],
  65.  
  66.         'globals' => [
  67.             'class' => Stores\GlobalsStore::class,
  68.             'directory' => base_path('content/globals'),
  69.         ],
  70.  
  71.         'asset-containers' => [
  72.             'class' => Stores\AssetContainersStore::class,
  73.             'directory' => base_path('content/assets'),
  74.         ],
  75.  
  76.         'assets' => [
  77.             'class' => Stores\AssetsStore::class,
  78.         ],
  79.  
  80. //        'users' => [
  81. //            'class' => Stores\UsersStore::class,
  82. //            'directory' => base_path('users'),
  83. //        ],
  84.  
  85.     ],
  86.  
  87.     /*
  88.     |--------------------------------------------------------------------------
  89.     | Indexes
  90.     |--------------------------------------------------------------------------
  91.     |
  92.     | Here you may define any additional indexes that will be inherited
  93.     | by each store in the Stache. You may also define indexes on a
  94.     | per-store level by adding an "indexes" key to its config.
  95.     |
  96.     */
  97.  
  98.     'indexes' => [
  99.         //
  100.     ],
  101.  
  102.     /*
  103.     |--------------------------------------------------------------------------
  104.     | Locking
  105.     |--------------------------------------------------------------------------
  106.     |
  107.     | In order to prevent concurrent requests from updating the Stache at
  108.     | the same and wasting resources, it will be "locked" so subsequent
  109.     | requests will have to wait until the first has been completed.
  110.     |
  111.     | https://statamic.dev/stache#locks
  112.     |
  113.     */
  114.  
  115.     'lock' => [
  116.         'enabled' => true,
  117.         'timeout' => 30,
  118.     ],
  119.  
  120. ];
  121.  
Advertisement
Add Comment
Please, Sign In to add comment