Giter Club home page Giter Club logo

yii-memcached's Introduction

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 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

yii-memcached's People

Contributors

alexpestell avatar frank-laemmer avatar joshuabaker avatar ostark avatar pheeque1 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

ad-dc

yii-memcached's Issues

Trying to update to CraftCMS 4

Hello, I tried updating the Craft 4 but noticed I am getting a lot of issues due to the plugin not being compatible with Craft 4.

It doesn't work with CraftCMS v3.4.5

I am getting an error:

`Macbook-Pro Amilia % composer require fortrabbit/yii-memcached
Using version ^1.1 for fortrabbit/yii-memcached
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1

  • craftcms/cms 3.4.5 requires ext-zip * -> the requested PHP extension zip is missing from your system.
  • craftcms/cms 3.4.5 requires ext-zip * -> the requested PHP extension zip is missing from your system.
  • craftcms/cms 3.4.5 requires ext-zip * -> the requested PHP extension zip is missing from your system.
  • Installation request for craftcms/cms 3.4.5 -> satisfiable by craftcms/cms[3.4.5].`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.