Hot answers tagged

5 votes

Using PHP Redis as Session Store

This may help: Add the following to the general.php 'cacheMethod' => 'redis', 'overridePhpSessionLocation' => 'tcp://localhost:6379' Add the following to the index.php ini_set('session....
user avatar
3 votes
Accepted

Craft CMS 3 - Redis Sessions cause error

@boboldehampsink to the rescue: https://github.com/craftcms/cms/issues/3428 Update: This article covers things really well. https://nystudio107.com/blog/the-case-of-the-missing-php-session php ini ...
user avatar
  • 3,061
3 votes

Expected performance benefit of using a non-file CacheMethod (Redis, Memcache)

How many servers do you have? Redis and Memcached are most beneficial/intended for a multiple server setup so if you only have one server, there's probably other/betters thing to worry about. (Best ...
user avatar
  • 6,442
3 votes
Accepted

Expected performance benefit of using a non-file CacheMethod (Redis, Memcache)

As with most performance related questions, the answer is "it depends". :) Apps like Redis and Memcache store their key => value stores in memory as opposed to disk-based file caching. Accessing ...
user avatar
  • 66.4k
2 votes

Expected performance benefit of using a non-file CacheMethod (Redis, Memcache)

Here you can find an interesting benchmarking between Redis (remote or local) and Python Disk caching. The answer from Didier Spezia is good enough to understand the results. https://stackoverflow.com/...
user avatar
1 vote

error in production when using redis for cache and session

Luckily, someone else had this problem: https://github.com/craftcms/cms/issues/7617#issuecomment-786715807 The issue was because of leaving the password blank. devMode did not care, but production did....
user avatar
1 vote

Redis cache memory usage

You don't mention if it's Crat 2 or Craft 3, but I'm not seeing anything in either codebase where Craft (or Yii) would limit the amount of memory available in its caching classes.
user avatar
  • 66.4k
1 vote

Craft 3 Redis configuration error

Turns out it was a beginners mistake, thank you to Robin in the comments above for setting me on the right track. All that was required to install was the Yii2 library, once this was done all worked ...
user avatar
  • 105
1 vote

Control Panel Session 60 second Timeout

I seemed to have resolved this issue. Though I am not entirely clear about why the following works, I'll describe what worked for me in case someone else is alos having this issue. If anyone can shed ...
user avatar
  • 21
1 vote

Control Panel Session 60 second Timeout

I've had issues before where I was getting logged out and could not fathom why: it turned out (after weeks) that when I was using Inspector Tools' Responsive Design mode, Chrome sends different UA ...
user avatar
  • 3,084
1 vote

Craft with Redis session handling

I can't say for certain if you would see faster session handling if you added the overridePhpSessionLocation config key, but have you added the appId and validationKey configuration keys? I was ...
user avatar
1 vote

Expected performance benefit of using a non-file CacheMethod (Redis, Memcache)

Redis and Memcache are both Key value pair storage, their key => value stores in memory as opposed to disk-based file caching that make is faster to access compare with accessing data from disk Few ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible