I am trying to make dependency's work using Craft Cache (set to Redis.)
craft()->cache->set('cache_key', 'cache_value', 0, new CFileCacheDependency('dependent_cache_key'));
This stores the cache. However, when I then update the value for cache with the key name
cache_key does not invalidate.
CFileCacheDependency not the right way to attach dependency to a cache key? All the YII description says is "File Name."
Also, is it possible to declare directories for Craft Cache? I see YII also has a dependency method for directories
CDirectoryCacheDependency, which would be optimal in my case, but I have no idea how to assign a directory for cache using
Any help would be incredibly appreciated. Been stumped crawling through yii docs to figure this out.