update("buttonstats", ["opid" => $_POST['uid'], "message" => $_POST['msg'], "readtime" => 0], ["id" => $_POST['id']]); // Now let us delete and recreate the proactive cache file $proactivefile = APP_PATH.JAK_CACHE_DIRECTORY.'/mproactive.php'; if (file_exists($proactivefile)) { unlink($proactivefile); } // Get the departments $manualproactive = $jakdb->select("buttonstats", ["id", "session", "message"], ["readtime" => 0, "ORDER" => ["lasttime" => "DESC"]]); $pafile = ""; if (JAK_base::jakWriteinCache($proactivefile, $pafile, '')) { echo json_encode(array('status' => 1)); } else { echo json_encode(array('status' => 0)); } ?>