I am creating a CFileCache using the console app. But I’m unable share that cache with the web app. Any idea how to share caches created from console to the web app?
In my console app:
$cacheId = "testCache"; Yii::app()->cache->set($cacheId, $fileContent);
In my web app:
$cacheId = "testCache"; Yii::app()->cache->get($cacheId)
In both config/main.php and config/console.php I have included the caching component:
'components'=>array( 'cache'=>array( 'class'=>'system.caching.CFileCache', ), ),
But the sharing between the console app and the web app doesn’t work.