1
0
www.mikescher.com/www/commands/extendedgitgraph_refresh.php

25 lines
536 B
PHP
Raw Normal View History

2018-01-27 00:28:32 +01:00
<?php
2020-01-16 13:21:14 +01:00
require_once (__DIR__ . '/../internals/website.php');
2018-01-27 00:28:32 +01:00
2020-01-16 13:21:14 +01:00
/** @var PageFrameOptions $FRAME_OPTIONS */ global $FRAME_OPTIONS;
/** @var URLRoute $ROUTE */ global $ROUTE;
/** @var Website $SITE */ global $SITE;
2018-01-27 00:28:32 +01:00
2021-06-13 21:56:13 +02:00
set_time_limit(6*60*60); // 6h
2018-01-27 00:28:32 +01:00
2020-04-22 11:24:48 +02:00
$r1 = $SITE->modules->ExtendedGitGraph()->update();
if (!$r1)
{
http_response_code(500);
echo 'EGG::update failed.';
}
2018-01-27 00:28:32 +01:00
2020-04-22 11:24:48 +02:00
$r2 = $SITE->modules->ExtendedGitGraph()->updateCache();
if (!$r2)
{
http_response_code(500);
echo 'EGG::updateCache failed.';
}
http_response_code(200);
echo 'Done.';