diff --git a/src/Config/themes.php b/src/Config/themes.php index ebc309a..2b31d55 100644 --- a/src/Config/themes.php +++ b/src/Config/themes.php @@ -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) |-------------------------------------------------------------------------- */ @@ -38,7 +38,7 @@ |-------------------------------------------------------------------------- */ - 'cache' => true, + 'cache' => false, /* |-------------------------------------------------------------------------- @@ -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', | ], | |-------------------------------------------------------------------------- @@ -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', | ], - | + | |-------------------------------------------------------------------------- */ ], diff --git a/src/Themes.php b/src/Themes.php index e8c18b4..1bcfe92 100644 --- a/src/Themes.php +++ b/src/Themes.php @@ -148,7 +148,7 @@ public function getLaravelViewPaths() public function cacheEnabled() { - return config('themes.cache', true); + return config('themes.cache', false); } // Rebuilds the cache file