   } else {
     caching = true;
     unsigned long count = listDir(SPIFFS, "/", "");
-    Serial.println("Total of " + String(count, DEC) + " files.");
+    Serial.println("Caching on - Total of " + String(count, DEC) + " files.");
   };
 
   Serial.println("setup() done.\n\n");

        type = "SPIFFS";
        break;
      default: {
          const char buff[] = "Unknown type of reprogramming attempt. Rejecting.";
          Serial.println(buff);
          client.publish(log_topic, buff);
          client.loop();

  if (!strcmp(buff, "open")) {
    Serial.println("Opening door.");
    openDoor();
    // So we have a lovely security hole here - if someone swipes a card
    // that has access; and then quickly (before the server respons) swipes
    // a card that is unknown -- that other card gets caches. And as the system
    // does not see a 'deny' in the 'as-is' situation - we have a nice window
    // of naughtyness.
    //
    if (caching && uid.size)
      setCache(uid, true);
    uid.size = 0;
