  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

   IF (COALESCE(LAST_REFRESH, EPOCH) + SECS SECONDS < CURRENT TIMESTAMP OR LOADED = FALSE) THEN
    -- Refreshes the configuration
	CALL LOGGER.REFRESH_CONF ();
   -- Checks the variable for internal cache
   -- TODO remove if the trigger works correctly
    BEGIN
     -- NULL if the key is not in the configuration.
     DECLARE EXIT HANDLER FOR SQLSTATE '2202E'
       SET CACHE = TRUE;

     SET CACHE = CASE CONFIGURATION[INTERNAL_CACHE] 
       WHEN 'true' THEN TRUE 
       ELSE FALSE
       END;
    END;
    SET LOADED = TRUE;
   END IF;


 P_ACT_CACHE: BEGIN
  DECLARE VAL ANCHOR LOGDATA.CONFIGURATION.VALUE;

  -- NOTE: Active for debugging.
  -- Check that the configuration variable is true
  --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 = TRUE;
  SET LOADED = FALSE;
  -- Cleans the cache
