Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Update process suggestion

Started by Muut Archive 9 years ago · 1 replies · 335 views
9 years ago

I'm running a fairly big Grav site, and a very welcome feature would be:
Being able to turn off the auto image cache clear after updating or upgrading.
It takes a lot of resources to rebuild the image cache after every update; which is a shame, because the overall update process is very smooth. (a dream compared to Drupal for example)

9 years ago

something like this inside SelfupgradeCommand.php:

PHP
// clear cache after successful upgrade
        $question = new ConfirmationQuestion("Would you like to clear all cache now? [y|N] ", false);
        $answer = $questionHelper->ask($this->input, $this->output, $question);

        if (!$answer) {
          $this->output->writeln("Cache not cleared. You can allways manually clear the cache if necessary.");
        }
        else{
          $this->clearCache('all');
          $this->output->writeln("All cache cleared.");
        }

instead of:

PHP

// clear cache after successful upgrade
$this->clearCache('all');
---

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1326 9 years ago
Archive · by Muut Archive, 9 years ago
2 920 9 years ago
Archive · by Muut Archive, 9 years ago
2 4049 9 years ago
Archive · by Muut Archive, 9 years ago
1 2927 9 years ago
Archive · by Muut Archive, 9 years ago
3 1106 9 years ago