I don't understand how Craft CMS processes cache with Redis especially when saving to database/s?
- Craft Pro 3.4.8
- PostgreSQL 12.2
- PHP-FPM 7.4.3
- Redis 5.0.7
I followed examples from the Application Configuration documentation and It seems that Craft CMS works well Redis. From inspecting both databases, sessions and queue work as expected.
queuetable is created in SQL DB but empty because all queue related storage is moved to Redis where I can see all the keys
queuetable will probably always stay in SQL DB from installation process.
- when a session begins
tokenvalue is created in
sessionstable in SQL DB with some session related attributes and I also could locate the same
tokenkey-value in Redis DB with additional info about current session. When session ended token was removed from both databases.
I created some matrix field content and I cached it.
I found out that a row with
cacheKey and other attributes (along with
body column) are created in templatecaches table in SQL DB.
Since using Redis I expected that all/most of cache related storage will be stored in Redis. Inspecting Redis and I couldn't find anything to cache related stuff.