Suggested changes to object caching and transients
-
Hi Frederick,
I have two suggestions, which I’d love to discuss here.
1. IMO, if object caching is on, transients set without expiration (set_transient with no expiration parameter) shouldn’t expire after the same time as “Default lifetime of cache objects” which is I think 3 minutes by default. This is completely counter-intuitive – transients aren’t like other objects and by default when object caching is turned off get written to the database permanently. So a transient without an expiration should stay in the cache indefinitely, at least until evicted by memcached/APC itself.
2. W3TC should support another type of object groups called Excluded groups. For example, if “transient” is added to non-persistent groups right now, none of the transients survive at all. There’s no way to make certain groups basically disregard W3TC policies and go to the MySQL database instead where they can be stored permanently. For transients, it especially makes sense, since we could be relying on them for storing things like locks to prevent multiple processing from doing the same thing over and over or too frequently.
I hope you can consider my suggestions, and I welcome any discussion.
- The topic ‘Suggested changes to object caching and transients’ is closed to new replies.