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)
Archive
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');
---
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1328 | 9 years ago | ||
| 2 | 921 | 9 years ago | ||
| 2 | 4050 | 9 years ago | ||
| 1 | 2928 | 9 years ago | ||
| 3 | 1107 | 9 years ago |