diff --git a/admin/cli/install.php b/admin/cli/install.php
index <HASH>..<HASH> 100644
--- a/admin/cli/install.php
+++ b/admin/cli/install.php
@@ -164,6 +164,7 @@ require_once($CFG->libdir.'/moodlelib.php');
 require_once($CFG->libdir.'/deprecatedlib.php');
 require_once($CFG->libdir.'/adminlib.php');
 require_once($CFG->libdir.'/componentlib.class.php');
+require_once($CFG->dirroot.'/cache/lib.php');
 
 require($CFG->dirroot.'/version.php');
 $CFG->target_release = $release;
diff --git a/lib/moodlelib.php b/lib/moodlelib.php
index <HASH>..<HASH> 100644
--- a/lib/moodlelib.php
+++ b/lib/moodlelib.php
@@ -7030,9 +7030,6 @@ class core_string_manager implements string_manager {
      */
     public function get_revision() {
         global $CFG;
-        if (!$this->usediskcache) {
-            return -1;
-        }
         if (isset($CFG->langrev)) {
             return (int)$CFG->langrev;
         } else {
MDL-<I> cache: Added missing include and fixed old lang manager setting