1
0
Fork 0

Enable cache

master
Lukas Bestle 5 years ago
parent bedb05c13e
commit dc289877f1

3
.gitignore vendored

@ -10,6 +10,9 @@ Icon
/public/media/*
!/public/media/index.html
/site/cache/*
!/site/cache/index.html
# Dependencies
# ------------

@ -0,0 +1,18 @@
#!/usr/bin/env php
<?php
require dirname(__DIR__) . '/public/bootstrap.php';
// manually set the cache prefix
$kirby = $kirby->clone([
'options' => [
'cache' => [
'pages' => [
'active' => true,
'prefix' => 'lukasbestle.com'
]
]
]
]);
$kirby->cache('pages')->flush();

@ -0,0 +1,13 @@
<?php
$index = dirname(__DIR__);
require $index . '/kirby/bootstrap.php';
$kirby = new Kirby([
'roots' => [
'index' => $index,
'assets' => __DIR__ . '/assets',
'media' => __DIR__ . '/media'
]
]);

@ -1,15 +1,5 @@
<?php
$index = dirname(__DIR__);
require $index . '/kirby/bootstrap.php';
$kirby = new Kirby([
'roots' => [
'index' => $index,
'assets' => __DIR__ . '/assets',
'media' => __DIR__ . '/media'
]
]);
require __DIR__ . '/bootstrap.php';
echo $kirby->render();

@ -0,0 +1,9 @@
<?php
return [
'cache' => [
'pages' => [
'active' => true
]
]
];
Loading…
Cancel
Save