-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[page.system.task] Fix flush task with default cache configuration.
Configuration options for cache directories were read from flush page with a different (null) configuration than the one used when initializing actual services, leading to flushing having no effect. See: https://www.yaronet.com/topics/190254-yaronet-passe-open-source/2#post-49
- Loading branch information
Showing
5 changed files
with
41 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace yN\Engine\Network; | ||
|
||
defined('YARONET') or die; | ||
|
||
class Router | ||
{ | ||
public static function cache_directory() | ||
{ | ||
return config('engine.network.route.cache', './storage/cache/route'); | ||
} | ||
|
||
public static function create() | ||
{ | ||
require './library/queros/queros.php'; | ||
|
||
$cache = self::cache_directory(); | ||
|
||
return new \Queros\Router('route.php', $cache !== null ? $cache . '/queros.php' : null); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters