Questions tagged [memcachier]
15 questions
9
votes
1 answer
How to setup Memcached with failover support in Heroku/PHP 5.6 environment?
Recently, our PHP web app became unavailable for a few minutes since one of our Memcached nodes died (we use Memcachier as a Memcached provider).
This was our user.ini configuration (Heroku uses user.ini as a place where you define your…

The Onin
- 5,068
- 2
- 38
- 55
4
votes
1 answer
Rails cached value lost/nil despite expires_in 24.hours
I am using ruby 2.3.3 and Rails 4.2.8 with Puma (1 worker, 5 threads) and on my admin (i.e. not critical) page I want to show some stats (integer values) from my database. Some requests take quite a long time to perform so I decided to cache these…

Christoffer
- 2,271
- 3
- 26
- 57
2
votes
2 answers
Improving Rails.cache.write by setting key-value pairs asynchronously
I am currently thinking about improving the performance of Rails.cache.write when using dalli to write items to the memcachier cloud.
The stack, as it relates to caching, is currently:
heroku, memcachier heroku addon, dalli 2.6.4, rails 3.0.19
I…

zealoushacker
- 6,766
- 5
- 35
- 44
1
vote
1 answer
When redeploying app on heroku PHP sessions disappear
I have a Symfony app on Heroku which uses sessions (eg. to keep user logged in).
I have configured memcachier (output of heroku addons command):
Add-on Plan Price
───────────────────────────────── ──── …

Dimitry K
- 2,236
- 1
- 28
- 37
1
vote
0 answers
Heroku Worker Dyno memcachem
I have a Heroku App using 3 dynos: 1 web and 2 worker dynos.
For inter-dyno-communication I choose memcachier, everthing is implemented using nodejs.
The Web-Dyno has no problems connecting to the memcacher service and works like a charme, but…

chrstnwhlrt
- 331
- 1
- 4
- 18
1
vote
2 answers
met memcachier(memcached) error when deploy to heroku
ruby version on Gemfile is v2.1.2 and rails version is 4.1.1
ruby '2.1.2'
gem 'rails', '4.1.1'
and there is like this.
gem "memcachier"
gem 'dalli'
I added memcachier add-on already.
but when deploy my rails code to heroku, I met this error.
…

kikiki.blue
- 541
- 1
- 4
- 12
0
votes
0 answers
Heroku MemCachier will not store cache
Quite new to this as I am trying to deploy MemCachier and I am quite new to code in general.
Followed this guide
https://devcenter.heroku.com/articles/flask-memcache
I have a function in a Flask app that will store a df in cache. I am working localy…

Oris
- 73
- 8
0
votes
1 answer
Heroku and Memcachier (Memcached) Logging Users Out (PHP)
I'm running a PHP application on Heroku and handling sessions using Memcachier add-on.
What Works:
- Memcachier successfully keeps users logged in through new deployments to Heroku.
What Doesn't Work
- Users will get logged out randomly throughout…

drummer392
- 473
- 2
- 8
- 35
0
votes
1 answer
Memcache works on localhost (without anything in settings.py)
My question is "can anybody corroborate or explain?"
The following caching logic works as expected on localhost, but
fails on heroku (queries every time):
from django.core.cache import cache
QUEUE_KEY = "queue"
def index(request):
queue =…

Mike Sweeney
- 1
- 3
0
votes
1 answer
Your free cache has been inactive recently - memcache error
I am constantly getting this error for many of my apps suddenly.
Dear MemCachier user,
Regarding your cache with ID my-id: Your cache has been inactive for
the last 20 days. It will be deactivated in 10 days.
Note that deactivated caches can…

techdreams
- 5,371
- 7
- 42
- 63
0
votes
1 answer
Python, Heroku & Memcachier - access settings.py variable
I am following the instructions on Heroku for using Memcahier with Python.
When trying to use the 'mc' variable, which is set in settings.py, in another file I get the following error:
Exception Value: name 'mc' is not defined
I have tried…

kmak
- 708
- 7
- 13
0
votes
1 answer
Memcachier add-on for cloudcontrol is failing
I followed the installation guide at https://www.cloudcontrol.com/dev-center/Add-on%20Documentation/Data%20Storage/MemCachier. The memcachier server is up and running, I tested it from the command line. But my cloudcontrol app isn't able to access…

Hakayati
- 77
- 1
- 4
0
votes
1 answer
require 'dalli' returns false in the console, although it is in the gemfile
Following https://devcenter.heroku.com/articles/memcachier#ruby
I added memcachier and dalli gems, and did a bundle install
then I ran the console
and I typed
require 'dalli'
and it returns false
and I can't tell why, it also does this in a staging…

bezzoon
- 1,755
- 4
- 24
- 52
0
votes
1 answer
Advantage of using memcachier vs ordinary Rails.cache
I came across with this article https://devcenter.heroku.com/articles/memcachier
I just want to ask what's the main advantage of storing the cache in memcachier.
What's the advantage of using other service for caching compared to just caching on…

rav
- 743
- 6
- 14
0
votes
2 answers
How can I see the contents of the Memcachier cache on Heroku?
I need to inspect the cache, and see what IP's are blocked*, and for how long.
NB: I am on a developer/free plan.
Update:
I'm using the rack-throttle gem which stores blocked IP's in the cache.

Magne
- 16,401
- 10
- 68
- 88