original_string: public static function purge_by_definition($component, $area, array $identifiers = array()) {
          // Create the cache.
          $cache = cache::make($component, $area, $identifiers);
          // Initialise, in case of a store.
          if ($cache instanceof cache_store) {
              $factory = cache_factory::instance();
              $definition = $factory->create_definition($component, $area, null);
              $cacheddefinition = clone $definition;
              $cacheddefinition->set_identifiers($identifiers);
              $cache->initialise($cacheddefinition);
          }
          // Purge baby, purge.
          $cache->purge();
          return true;
      }
code: public static function purge_by_definition($component, $area, array $identifiers = array()) {
          // Create the cache.
          $cache = cache::make($component, $area, $identifiers);
          // Initialise, in case of a store.
          if ($cache instanceof cache_store) {
              $factory = cache_factory::instance();
              $definition = $factory->create_definition($component, $area, null);
              $cacheddefinition = clone $definition;
              $cacheddefinition->set_identifiers($identifiers);
              $cache->initialise($cacheddefinition);
          }
          // Purge baby, purge.
          $cache->purge();
          return true;
      }
code_tokens: public static function purge_by_definition ( $ component , $ area , array $ identifiers = array ( ) ) { // Create the cache. $ cache = cache :: make ( $ component , $ area , $ identifiers ) ; // Initialise, in case of a store. if ( $ cache instanceof cache_store ) { $ factory = cache_factory :: instance ( ) ; $ definition = $ factory -> create_definition ( $ component , $ area , null ) ; $ cacheddefinition = clone $ definition ; $ cacheddefinition -> set_identifiers ( $ identifiers ) ; $ cache -> initialise ( $ cacheddefinition ) ; } // Purge baby, purge. $ cache -> purge ( ) ; return true ; }
docstring: Purges the cache for a specific definition.
  
  @param string $component
  @param string $area
  @param array $identifiers
  @return bool
docstring_tokens: Purges the cache for a specific definition .