Fix up cache wipe issue in A-Only device

 * missed in https://github.com/TeamWin/android_bootable_recovery/commit/3754fabbea2eefeb7c1a0c5bc804f1e14a686855

Change-Id: I8fc3719e7f98c3d9b5fd96a9820b84773d4f5d7d
Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
diff --git a/partition.cpp b/partition.cpp
index 9c6a64d..6f61de3 100755
--- a/partition.cpp
+++ b/partition.cpp
@@ -1701,6 +1701,9 @@
 	}
 
 	if (wiped) {
+		if (Mount_Point == "/cache" && TWFunc::get_log_dir() != DATA_LOGS_DIR)
+			DataManager::Output_Version();
+
 		if (TWFunc::Path_Exists("/.layout_version") && Mount(false))
 			TWFunc::copy_file("/.layout_version", Layout_Filename, 0600);