0

Is possible to clear the cache using drush (or else?) when I don't have the codebase anymore.

Here is the use case: I deleted the codebases of a lot of sites with backing up. Now I'm going to backup and delete the databases but I forgot to clear the caches before deleting the codebases. Now its too much work to restore all the sites one by one and clear the caches and do everyting again.

  • 1
    Drush needs to bootstrap Drupal. If you removed all the Drupal files, Drush cannot do anything. – kiamlaluno Feb 7 '15 at 15:02
  • do you know another way without the codebase? – duru Feb 7 '15 at 15:08
  • its strange, but clear tables: cache, cache_* and ctools_object_cache and ctools_css_cache – Gaydabura Feb 7 '15 at 16:03
  • It doesn't make sense, since without code you could delete all the database tables, which are not going to be used. – kiamlaluno Feb 7 '15 at 20:41
  • I couldn't make myself clear. I am backing up the databases. And all code is already backed up and deleted (bad desicions, ok.). But then I remember that I should have cleared the caches to reduce sqldump sizes and overhead while restoring. – duru Feb 8 '15 at 12:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.