public static function purge_stores_used_by_definition($component, $area) {
        $factory = cache_factory::instance();
        $config = $factory->create_config_instance();
        $definition = $factory->create_definition($component, $area);
        $stores = $config->get_stores_for_definition($definition);
        foreach ($stores as $store) {
            self::purge_store($store['name']);
        }
    }
public static function purge_stores_used_by_definition($component, $area) {
        $factory = cache_factory::instance();
        $config = $factory->create_config_instance();
        $definition = $factory->create_definition($component, $area);
        $stores = $config->get_stores_for_definition($definition);
        foreach ($stores as $store) {
            self::purge_store($store['name']);
        }
    }
public static function purge_stores_used_by_definition ( $ component , $ area ) { $ factory = cache_factory :: instance ( ) ; $ config = $ factory -> create_config_instance ( ) ; $ definition = $ factory -> create_definition ( $ component , $ area ) ; $ stores = $ config -> get_stores_for_definition ( $ definition ) ; foreach ( $ stores as $ store ) { self :: purge_store ( $ store [ 'name' ] ) ; } }
Purges all of the stores used by a definition.

Unlike cache_helper::purge_by_definition this purges all of the data from the stores not
just the data relating to the definition.
This function is useful when you must purge a definition that requires setup but you don't
want to set it up.

@param string $component
@param string $area
Purges all of the stores used by a definition .