Skip to content

Commit

Permalink
Remove Drush's cache API. We no longer need to cache annotation parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Dec 31, 2021
1 parent bc85343 commit 306b362
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 177 deletions.
170 changes: 0 additions & 170 deletions includes/cache.inc

This file was deleted.

1 change: 0 additions & 1 deletion src/Preflight/LegacyPreflight.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public static function includeCode($drushBasePath): void
require_once $drushBasePath . '/includes/batch.inc';
require_once $drushBasePath . '/includes/drupal.inc';
require_once $drushBasePath . '/includes/output.inc';
require_once $drushBasePath . '/includes/cache.inc';
require_once $drushBasePath . '/includes/filesystem.inc';
require_once $drushBasePath . '/includes/legacy.inc';
}
Expand Down
6 changes: 0 additions & 6 deletions src/Runtime/DependencyInjection.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,9 @@ protected function alterServicesForDrush($container, Application $application):
$hookManager->addInitializeHook($container->get('bootstrap.hook'));
$hookManager->addPreValidator($container->get('tildeExpansion.hook'));

// Install our command cache into the command factory
// TODO: Create class-based implementation of our cache management functions.
$cacheBackend = _drush_cache_get_object('factory');
$commandCacheDataStore = new CommandCache($cacheBackend);

$factory = $container->get('commandFactory');
$factory->setIncludeAllPublicMethods(false);
$factory->setIgnoreCommandsInTraits(true);
$factory->setDataStore($commandCacheDataStore);
$factory->addCommandInfoAlterer(new DrushCommandInfoAlterer());

$commandProcessor = $container->get('commandProcessor');
Expand Down

0 comments on commit 306b362

Please sign in to comment.