Skip to content

Commit

Permalink
disable caching themes by default. It must be excplicitly enabled at …
Browse files Browse the repository at this point in the history
…themes.php config file
  • Loading branch information
igaster committed Apr 27, 2018
1 parent 51b7596 commit b37c530
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions src/Config/themes.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
|--------------------------------------------------------------------------
| Root path where theme Views will be located.
| Can be outside default views path e.g.: resources/themes
| Leave it null if you will put your themes in the default views folder
| Leave it null if you will put your themes in the default views folder
| (as defined in config\views.php)
|--------------------------------------------------------------------------
*/
Expand Down Expand Up @@ -38,7 +38,7 @@
|--------------------------------------------------------------------------
*/

'cache' => true,
'cache' => false,

/*
|--------------------------------------------------------------------------
Expand All @@ -51,7 +51,7 @@
|
| // You can add your own custom keys
| // Use Theme::getSetting('key') & Theme::setSetting('key', 'value') to access them
| 'key' => 'value',
| 'key' => 'value',
| ],
|
|--------------------------------------------------------------------------
Expand All @@ -71,26 +71,26 @@
| 'views-path' => example, // = resources/views/example_theme
| 'asset-path' => example, // = public/example_theme
| ],
|
|
| // Use all Defaults:
|
|
| 'example2', // Assets =\public\example2, Views =\resources\views\example2
| // Note that if you use all default values, you can omit declaration completely.
| // i.e. defaults will be used when you call Theme::set('undefined-theme')
|
|
|
|
| // This theme shares the views with example2 but defines its own assets in \public\example3
|
|
| 'example3' => [
| 'views-path' => 'example',
| ],
|
|
| // This theme extends example1 and may override SOME views\assets in its own paths
|
|
| 'example4' => [
| 'extends' => 'example1',
| ],
|
|
|--------------------------------------------------------------------------
*/
],
Expand Down
2 changes: 1 addition & 1 deletion src/Themes.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function getLaravelViewPaths()

public function cacheEnabled()
{
return config('themes.cache', true);
return config('themes.cache', false);
}

// Rebuilds the cache file
Expand Down

0 comments on commit b37c530

Please sign in to comment.