php - Single cache frontend and backend -
i want use tagging cache in yii.
but turns out frontend using cache backend. when change model in backend, front of cache not cleared. there solutions this?
sorry english.
set distinct cache prefix frontend , backend in respective configuration files.
i still using 1.1.x branch, 2.x branch should same thing.
frontend configuration file:
'cache' => array( 'class' => 'system.caching.' . (!mw_debug ? 'cfilecache' : 'cdummycache'), 'keyprefix' => md5('frontend.' . mw_version . yii::getpathofalias('frontend')), ),
backend configuration file:
'cache' => array( 'class' => 'system.caching.' . (!mw_debug ? 'cfilecache' : 'cdummycache'), 'keyprefix' => md5('backend.' . mw_version . yii::getpathofalias('backend')), ),
Comments
Post a Comment