<?php
class Kwf_Update_20150728Legacy38017 extends Kwf_Update
{
    protected $_tags = array('kwc');

    public function update()
    {
        //clear all view caches, required for 7a36ae58a
        Kwf_Cache_Simple::getMemcache()->flush();
        Kwf_Registry::get('db')->query('TRUNCATE cache_component');
        Kwf_Registry::get('db')->query('TRUNCATE cache_component_includes');
    }
}

<?php
class Kwf_Update_20150728Legacy38017 extends Kwf_Update
{
    protected $_tags = array('kwc');

    public function update()
    {
        //clear all view caches, required for 7a36ae58a
        if (Kwf_Cache_Simple::getMemcache()) {
            Kwf_Cache_Simple::getMemcache()->flush();
        }
        Kwf_Registry::get('db')->query('TRUNCATE cache_component');
        Kwf_Registry::get('db')->query('TRUNCATE cache_component_includes');
    }
}

Fix Updatescript if no memcache exists
Fix Updatescript if no memcache exists
