I call the cache in filters() in my Controller
public function filters()
{
return array(
array(
'COutputCache',
'duration'=>3600,
'varyByParam'=>array('languages', 'value'),
),
);
}The site loads the content with the parameter language and value.
The Cache is working well, but I need the Id from the cached side. The site is static and can stay a long time in cached version until i make an update of the content.
Then I need the id from the site to delete the old site from the cache! But from where I get the id??
My Workflow is as follow:
1) Write a new dynamic site and save the data in the database
2) When the user calls the content, the site is cached in APC
3) When I update the content, I need the id from the old cached site to delete it.
4) Then I need a method to call the cache and get an cached site.
thank you for your help

Help













