Understanding TTL
-
Hello, thanks for providing the plugin. I have setup Object Cache with Redis and it’s is running. Currently I’m not sure if I do understand the mechanism.
- Default TTL is 0, that does mean that keys in Redis Cache never expire or that object caching is running but having no effect? Based on this answer https://wordpress.org/support/topic/wp_redis_maxttl/ I would assume 0 means forever
- Assumtion: If TTL is set to e.g. a week which is you standard recommendation for first tests what does that mean? The underlying DB is in my case MYSQL. If there is a select on the DB and TTL is a week the data will be stored for a week in object cache before expiring. If data is changed this is done via Redis object cache before it gets to DB and Redis is tracking the change (if client requires that based on https://redis.io/docs/manual/client-side-caching/) so there is no possiblity of changed data which is missed by the cache? Which means the only disadvantage of high TTL is memory usage and maybe speed if cache is to big? Is that assumption right or wrong?
- Default setting is to exclude plugins and themes. Is it a bad idea in general to cache that or is it just for safety reasons because you don’t know how plugins / themes would behave in this context?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Understanding TTL’ is closed to new replies.