Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Update process suggestion

Started by Muut Archive 10 years ago · 1 replies · 508 views
10 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)

10 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 Muut Archive, 10 years ago
1 672 1 week ago
Archive · by Deleted User, 9 years ago
0 3042 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago