Download the PHP package bnomei/kirby3-mysql-cachedriver without Composer
On this page you can find all versions of the php package bnomei/kirby3-mysql-cachedriver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bnomei/kirby3-mysql-cachedriver
More information about bnomei/kirby3-mysql-cachedriver
Files in bnomei/kirby3-mysql-cachedriver
Package kirby3-mysql-cachedriver
Short Description MySQL based Cache-Driver
License MIT
Informations about the package kirby3-mysql-cachedriver
🐬 Kirby3 MySQL Cache-Driver
Dolphin - a MySQL Cache Driver for Kirby 3
Commerical Usage
Support open source!
This plugin is free but if you use it in a commercial project please consider to sponsor me or make a donation.
If my work helped you to make some cash it seems fair to me that I might get a little reward as well, right?
Be kind. Share a little. Thanks.
‐ Bruno
M | O | N | E | Y |
---|---|---|---|---|
Github sponsor | Patreon | Buy Me a Coffee | Paypal dontation | Hire me |
Installation
- unzip master.zip as folder
site/plugins/kirby3-mysql-cachedriver
or git submodule add https://github.com/bnomei/kirby3-mysql-cachedriver.git site/plugins/kirby3-mysql-cachedriver
orcomposer require bnomei/kirby3-mysql-cachedriver
Usage
Cache methods
Benchmark
ATTENTION: This will create and remove a lot of cache files and sqlite entries
No cache when debugging
When Kirbys global debug config is set to true
the complete plugin cache will be flushed and no caches will be read. But entries will be created. This will make you live easier – trust me.
How to use MySQL Cache with Lapse or Boost
You need to set the cache driver for the lapse plugin to mysql
.
site/config/config.php
Setup Content-File Cache
Use Kirby 3 Boost to setup a cache for content files.
Settings
You can set the host, dbname, username, password,... in the config.
site/config/config.php
You can also set a callback if you use the dotenv Plugin.
site/config/config.php
bnomei.mysql-cachedriver. | Default | Description |
---|---|---|
store | true |
keep accessed cache items stored in PHP memory for faster recurring access |
store-ignore | `` | if key contains that string then ignore |
transaction.limit | 4096 |
exec transaction after n SET operations |
host | 127.0.0.1 |
string or callback |
unix_socket | null |
string or callback |
dbname | kirby3-mysql-cachedriver |
string or callback (will be created if it does not exists) |
tablename | kirby3-mysql-cachedriver |
string or callback (will be created if it does not exists) |
username | root |
string or callback |
password | `` | string or callback |
port | 3306 |
int or callback |
Dependencies
- PHP MySQL extension
Disclaimer
This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.
License
It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.