Enable cache
This commit is contained in:
@@ -10,6 +10,9 @@ Icon
|
||||
/public/media/*
|
||||
!/public/media/index.html
|
||||
|
||||
/site/cache/*
|
||||
!/site/cache/index.html
|
||||
|
||||
# Dependencies
|
||||
# ------------
|
||||
|
||||
|
||||
Executable
+18
@@ -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
-11
@@ -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();
|
||||
|
||||
Vendored
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'cache' => [
|
||||
'pages' => [
|
||||
'active' => true
|
||||
]
|
||||
]
|
||||
];
|
||||
Reference in New Issue
Block a user