I am using the cache component as described in Documentation:
$user = User::model()->cache(3600)->findAll();
However, when I change a user in backend database (MySQL), it changes immediately. So, I tried to use the dependency feature:
$dependency = new CDbCacheDependency('select max(register_time) from t_user');
$user = User::model()->cache(3600, $dependency)->findAll();
Still, the same results.
So, my questions are -> Am I doing it right? and How will I know if the caching is working right? ( I do not see anything in the WebLog ).
Please help.