mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-01 23:31:50 +02:00
Enabled cache in panel
This commit is contained in:
parent
25bc76d54e
commit
478fb55073
3 changed files with 11 additions and 1 deletions
|
@ -80,7 +80,7 @@ $container->set('flash', function() {
|
|||
|
||||
$container->set('view', function ($container) {
|
||||
$view = Twig::create(__DIR__ . '/../resources/views', [
|
||||
'cache' => false,
|
||||
'cache' => __DIR__ . '/../cache',
|
||||
]);
|
||||
$view->getEnvironment()->addGlobal('auth', [
|
||||
'isLogin' => $container->get('auth')->isLogin(),
|
||||
|
|
|
@ -336,6 +336,14 @@ To get the starting list of TLDs (Top-Level Domains) from ICANN and cache it for
|
|||
php /var/www/cp/bin/file_cache.php
|
||||
```
|
||||
|
||||
### Setup Cache Directory:
|
||||
|
||||
To setup the correct owner of the panel cache directory, please run the following command:
|
||||
|
||||
```bash
|
||||
chown www-data:www-data /var/www/cp/cache
|
||||
```
|
||||
|
||||
### Setting Up Redis Session Storage:
|
||||
|
||||
To utilize Redis for session storage, you need to install the necessary packages and configure your environment accordingly. Follow these steps to set up Redis session storage:
|
||||
|
|
|
@ -396,6 +396,8 @@ EOF
|
|||
|
||||
echo "Downloading initial data."
|
||||
php /var/www/cp/bin/file_cache.php
|
||||
echo "Setting up cache."
|
||||
chown www-data:www-data /var/www/cp/cache
|
||||
|
||||
echo -e "Installation complete!\n"
|
||||
echo -e "Next steps:\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue