  P_DEA_CACHE: BEGIN
   DECLARE VAL ANCHOR LOGDATA.CONFIGURATION.VALUE;
 
+  -- NOTE: Active for debugging.
   -- Check that the configuration variable is false
-  SELECT VALUE INTO VAL
-    FROM LOGDATA.CONFIGURATION
-	WHERE KEY = INTERNAL_CACHE;
-  IF (VAL = 'true') THEN
-   SIGNAL SQLSTATE VALUE 'LG002'
-     SET MESSAGE_TEXT = 'Invalid configuration state';
-  END IF;
+  --SELECT VALUE INTO VAL
+  --  FROM LOGDATA.CONFIGURATION
+  --  WHERE KEY = INTERNAL_CACHE;
+  --IF (VAL = 'true') THEN
+  -- SIGNAL SQLSTATE VALUE 'LG002'
+  --   SET MESSAGE_TEXT = 'Invalid configuration state';
+  --END IF;
   SET CACHE = FALSE;
   SET LOADED = FALSE;
   -- Cleans the cache

 END P_DELETE_CACHE @

/**
 * Activates the cache.
 */
ALTER MODULE LOGGER ADD
  PROCEDURE ACTIVATE_CACHE (

   IF (COALESCE(LAST_REFRESH, EPOCH) + SECS SECONDS < CURRENT TIMESTAMP OR LOADED = FALSE) THEN
    -- Refreshes the configuration
	CALL LOGGER.REFRESH_CONF ();
    SET LOADED = TRUE;
   END IF;

