Enable cache
parent
bedb05c13e
commit
dc289877f1
@ -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
|
<?php
|
||||||
|
|
||||||
$index = dirname(__DIR__);
|
require __DIR__ . '/bootstrap.php';
|
||||||
|
|
||||||
require $index . '/kirby/bootstrap.php';
|
|
||||||
|
|
||||||
$kirby = new Kirby([
|
|
||||||
'roots' => [
|
|
||||||
'index' => $index,
|
|
||||||
'assets' => __DIR__ . '/assets',
|
|
||||||
'media' => __DIR__ . '/media'
|
|
||||||
]
|
|
||||||
]);
|
|
||||||
|
|
||||||
echo $kirby->render();
|
echo $kirby->render();
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
'cache' => [
|
||||||
|
'pages' => [
|
||||||
|
'active' => true
|
||||||
|
]
|
||||||
|
]
|
||||||
|
];
|
Loading…
Reference in New Issue