Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fortrabbit/yii-memcached
Yii2/Craft3 Memcached enabler
https://github.com/fortrabbit/yii-memcached
fortrabbit memcached yii2
Last synced: 6 days ago
JSON representation
Yii2/Craft3 Memcached enabler
- Host: GitHub
- URL: https://github.com/fortrabbit/yii-memcached
- Owner: fortrabbit
- Created: 2018-06-19T15:43:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T14:04:28.000Z (over 2 years ago)
- Last Synced: 2024-04-16T08:46:56.987Z (7 months ago)
- Topics: fortrabbit, memcached, yii2
- Language: PHP
- Size: 15.6 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Craft CMS memcached enabler
This yii-extension is a memcached drop in replacement for sessions, cache and mutex. The file `Session` handler and the file `Cache` driver are getting replaced to work with Memcache without the need for further configuration for Pro Apps hosted on fortrabbit.
## Requirements
* Craft CMS (Version 3, 4, 5)
* A Professional App on fortrabbit (see below for other hosting providers)## Install
1. Install the extension with Composer `composer require fortrabbit/yii-memcached`
2. Deploy the `composer.json` and `composer.lock` file with Git
3. **That's it**## Non-fortrabbit environments
Provide the following ENV vars, if your application is not running on fortrabbit:
* `MEMCACHE_COUNT` (int, number of Memcached servers)
* `MEMCACHE_HOST1` (host name of first Memcached server)
* `MEMCACHE_PORT1` (port of first Memcached server)
* `MEMCACHE_HOST(n)` (host name of nth Memcached server)
* `MEMCACHE_PORT(n)` (port of nth Memcached server)## Good to know
* Read the fortrabbit [Memcache help](https://help.fortrabbit.com/memcache-pro) why this is mandatory in multi node environments
* This is not a Craft CMS plugin but an extension for the underlying Yii framework
* This is not required for Universal Apps hosted on fortrabbit, since there is no Memcache and the file system is persistent