@@ -228,9 +228,9 @@ tasks:
228228 fixtures:load :
229229 prompt : " This will reset your content. Continue?"
230230 cmds :
231- - task drush -- --yes pm:enable hoeringsportal_base_fixtures $(find web/modules/custom -type f -name 'hoeringsportal_*_fixtures.info.yml' -exec basename -s .info.yml {} \;)
231+ # - task drush -- --yes pm:enable hoeringsportal_base_fixtures $(find web/modules/custom -type f -name 'hoeringsportal_*_fixtures.info.yml' -exec basename -s .info.yml {} \;)
232232 - task drush -- --yes content-fixtures:load
233- - task drush -- --yes pm:uninstall content_fixtures
233+ # - task drush -- --yes pm:uninstall content_fixtures
234234 # Update states on public meetings.
235235 - task drush -- --yes hoeringsportal:public_meeting:state-update
236236 - task drush -- --yes cache:rebuild
@@ -252,3 +252,46 @@ tasks:
252252 # https://www.drupal.org/project/drupal/issues/3496223
253253 - ' task compose -- exec phpfpm sed -i "s/Plural-Forms: nplurals=2; plural=(n > 1);/Plural-Forms: nplurals=2; plural=(n != 1);/" translations/custom-translations.da.po'
254254 silent : true
255+
256+
257+ # Development settings tasks (`/admin/config/development/settings`) (cf. https://www.drupal.org/docs/develop/development-tools/disabling-and-debugging-caching).
258+
259+ development-settings:do-not-cache-markup-enable :
260+ desc : Disable markup cache (check ‘Do not cache markup“ on `/admin/config/development/settings`)
261+ cmds :
262+ - task drush -- php:eval "Drupal::keyValue('development_settings')->setMultiple(['disable_rendered_output_cache_bins' => TRUE]);"
263+ - task drush -- cache:rebuild
264+
265+ development-settings:do-not-cache-markup-disable :
266+ desc : Enable markup cache (for production) (uncheck ‘Do not cache markup“ on `/admin/config/development/settings`)
267+ cmds :
268+ - task drush -- php:eval "Drupal::keyValue('development_settings')->setMultiple(['disable_rendered_output_cache_bins' => FALSE]);"
269+ - task drush -- cache:rebuild
270+
271+ development-settings:twig-develoment-mode-enable :
272+ desc : Enable Twig development mode (check ‘Twig development mode“ on `/admin/config/development/settings`)
273+ cmds :
274+ - task drush -- php:eval "Drupal::keyValue('development_settings')->setMultiple(['twig_debug' => TRUE, 'twig_cache_disable' => TRUE]);"
275+ - task drush -- cache:rebuild
276+
277+ development-settings:twig-develoment-mode-disable :
278+ desc : Disable Twig development mode (for production) (uncheck ‘Twig development mode“ on `/admin/config/development/settings`)
279+ cmds :
280+ - task drush -- php:eval "Drupal::keyValue('development_settings')->setMultiple(['twig_debug' => FALSE, 'twig_cache_disable' => FALSE]);"
281+ - task drush -- cache:rebuild
282+
283+ development-settings:development :
284+ desc : Set cache settings for development
285+ cmds :
286+ - task development-settings:do-not-cache-markup-enable
287+ - task development-settings:twig-develoment-mode-enable
288+ - task drush -- cache:rebuild
289+ silent : true
290+
291+ development-settings:production :
292+ desc : Set cache settings for production
293+ cmds :
294+ - task development-settings:do-not-cache-markup-disable
295+ - task development-settings:twig-develoment-mode-disable
296+ - task drush -- cache:rebuild
297+ silent : true
0 commit comments