mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-31 21:51:29 +00:00
daemon: periodically create stampfile
This commit is contained in:
@@ -1505,6 +1505,19 @@
|
||||
}
|
||||
}
|
||||
|
||||
function make_stampfile($filename) {
|
||||
$fp = fopen($filename, "w");
|
||||
|
||||
if ($fp) {
|
||||
fwrite($fp, time() . "\n");
|
||||
fclose($fp);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function sql_random_function() {
|
||||
if (DB_TYPE == "mysql") {
|
||||
return "RAND()";
|
||||
|
||||
Reference in New Issue
Block a user