| 1681 | }
|
| 1682 | $staticPaths = (function () {
|
| 1683 | $host = $_SERVER['HTTP_HOST'] ?? 'localhost';
|
| 1684 | $apcuK = 'alvand:static_paths:' . md5($host);
|
| 1685 | return $this->apcuGet($apcuK, 600, function () use ($blogPrefix) {
|
| 1686 | if (isset($GLOBALS['ALVAND_STATIC_PATHS_LOADER'])) {
|
| 1687 | $loader = $GLOBALS['ALVAND_STATIC_PATHS_LOADER'];
|
| 1688 | if (is_callable($loader)) return (array)$loader(['host' => $_SERVER['HTTP_HOST'] ?? 'localhost']);
|
| 1689 | if (is_string($loader) && is_file($loader)) {
|
| 1690 | return substr($loader, -4) === '.php'
|