Skip to content

Commit 0b7cc5b

Browse files
author
Timon de Groot
committed
Change default cache_enabled_caches behavior and add documentation/examples
1 parent e0f2036 commit 0b7cc5b

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

deploy.php.sample_2_1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ set('magento_dir', 'magento');
1515
set('repository', '');
1616
// Space separated list of languages for static-content:deploy
1717
set('languages', 'en_US');
18+
// Enable all caches after deployment
19+
set('cache_enabled_caches', 'all');
1820

1921
// OPcache configuration
2022
task('cache:clear:opcache', 'sudo systemctl reload php-fpm');

deploy.php.sample_2_2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ set('magento_dir', 'magento');
1515
set('repository', '');
1616
// Space separated list of languages for static-content:deploy
1717
set('languages', 'en_US');
18+
// Enable all caches after deployment
19+
set('cache_enabled_caches', 'all');
1820

1921
// OPcache configuration
2022
task('cache:clear:opcache', 'sudo systemctl reload php-fpm');

deploy.php.sample_2_2_5

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ set('magento_dir', 'magento');
1515
set('repository', '');
1616
// Space separated list of languages for static-content:deploy
1717
set('languages', 'en_US');
18+
// Enable all caches after deployment
19+
set('cache_enabled_caches', 'all');
1820

1921
// OPcache configuration
2022
task('cache:clear:opcache', 'sudo systemctl reload php-fpm');

recipe/magento_2_1/cache.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,16 @@
1919
writeln('Skipped -> maintenance is not set');
2020
});
2121

22+
/*
23+
* By default, cache enabling is disabled.
24+
*/
25+
set('cache_enabled_caches', '');
26+
27+
/*
28+
* To enable all caches after deployment, configure the following:
29+
*
2230
set('cache_enabled_caches', 'all');
31+
*/
2332

2433
/*
2534
* One can provide specific caches as well.

0 commit comments

Comments
 (0)