| 1 |
<?php |
| 2 |
/** |
| 3 |
* Our API calls responsible for handling requests from website visitors. |
| 4 |
* |
| 5 |
* @package ForceRefresh |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace JordanLeven\Plugins\ForceRefresh\Api; |
| 9 |
|
| 10 |
/** |
| 11 |
* Custom intervals must be at least 30 seconds. |
| 12 |
*/ |
| 13 |
define( 'REFRESH_INTERVAL_CUSTOM_MINIMUM_IN_SECONDS', 30 ); |
| 14 |
|
| 15 |
/** |
| 16 |
* Custom intervals must be, at max, four hours. |
| 17 |
*/ |
| 18 |
define( 'REFRESH_INTERVAL_CUSTOM_MAXIMUM_IN_SECONDS', 4 * 3600 ); |
| 19 |
|
| 20 |
// Our admin API handlers. |
| 21 |
require_once __DIR__ . '/register-endpoints.php'; |
| 22 |
|