Skip to content

Commit

Permalink
♻️ added missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
bnomei committed Jun 30, 2024
1 parent 936f492 commit bc127b7
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 3 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ $deleteResult = $collection->deleteMany([
$deletedCount = $deleteResult->getDeletedCount();
```

> ⚠️ The stored value is a JSON encoded instance of the Kirby\Cache\Value class and pretty much useless for querying.
## Using the Cache Driver in Kirby

You can also use the MongoDB-based cache as a **cache driver** for Kirby. This will allow you to use it for caching of
Expand Down
9 changes: 9 additions & 0 deletions tests/content/1_home/home.de.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Title: Home

----

Text: Home DE

----

Text-non-translated: Home NT
13 changes: 13 additions & 0 deletions tests/content/1_home/home.en.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Title: Home

----

Text: Home EN

----

Text-non-translated: Home NT

----

Uuid: home
Binary file added tests/content/1_home/image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
15 changes: 15 additions & 0 deletions tests/site/languages/de.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

return [
'code' => 'de',
'default' => false,
'direction' => 'ltr',
'locale' => [
'LC_ALL' => 'de_DE',
],
'name' => 'German',
'translations' => [

],
'url' => null,
];
15 changes: 15 additions & 0 deletions tests/site/languages/en.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

return [
'code' => 'en',
'default' => true,
'direction' => 'ltr',
'locale' => [
'LC_ALL' => 'en_US',
],
'name' => 'English',
'translations' => [

],
'url' => null,
];
3 changes: 3 additions & 0 deletions tests/site/plugins/kirby-mongodb/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

@include_once __DIR__.'/../../../../index.php';
3 changes: 2 additions & 1 deletion tests/site/templates/home.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php

\Bnomei\Mongodb::singleton()->benchmark(1000);
$results = \Bnomei\Mongodb::singleton()->benchmark(1000);
var_dump($results);

0 comments on commit bc127b7

Please sign in to comment.