redis check
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
root
2024-08-12 20:12:33 +02:00
parent 8399a6b3bb
commit 52164452b6
2 changed files with 36 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
<?php
include "functions.php";
sleep(1);
switch ($_GET["op"]) {
case "redis":
try {
@@ -19,8 +19,10 @@ switch ($_GET["op"]) {
$op = "init:".date("YmdHis");
redis_set($op,$json);
echo "OK"; // TODO?
break;
case "init_check":
case "check_init":
echo "NEW";exit;// TEMP-TEST
$data = check_redis("web_out");
if ($data["STATUS"]==2) echo "NEW";
elseif ($data["STATUS"]==1) echo "EXISTS";