php framework - Zend Framework 1 clean cache not working?
巴扎黑
巴扎黑 2017-05-16 16:43:16
0
2
366

I use the following statement to clear the cache:

$cache->clean(Zend_Cache::CLEANING_MODE_MATCHING_TAG,array($uid,'PERMISSIONS'));

There is no way to clear the cache at this time, I made sure the tags consisting of $uid and PERMISSIONS are correct. My cache save code is:

$cache_tag=array($uid,'PERMISSIONS'); $cache->save($cache_data,$cache_id,$cache_tag);

When I use the following method, it can be cleared

$cache->clean(Zend_Cache::CLEANING_MODE_ALL);

Why is this? ?

巴扎黑
巴扎黑

reply all (2)
滿天的星座

Solved, the reason is that zf’s memcache cache does not support tag removal, see the source code

    巴扎黑

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!