~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

Viewing changes to web/install.inc.php

  • Committer: Chad Heuschober
  • Date: 2011-08-03 18:17:04 UTC
  • mto: (1.26.1 push-trunk)
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: chad.heuschober@mail.cuny.edu-20110803181704-001pgoh1knahi8e2
Updated installer to execute a clear-cache:all but NOTE that it required a chdir() which could have unintended side effects.

Show diffs side-by-side

added added

removed removed

Lines of Context:
574
574
      $configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'all', false);
575
575
      $databaseManager = new sfDatabaseManager($configuration);
576
576
//        $connection = Doctrine_Manager::connection()->connect();
577
 
      $sfInstance = sfContext::createInstance($configuration)->dispatch();
 
577
      sfContext::createInstance($configuration)->dispatch();
578
578
 
579
 
//      $task = new sfCacheClearTask(sfContext::getInstance($configuration)->getEventDispatcher(), new sfFormatter());
580
 
//      $task->run(array(), array());
 
579
      chdir(sfConfig::get('sf_root_dir'));
 
580
      $task = new sfCacheClearTask(sfContext::createInstance($configuration)->getEventDispatcher(), new sfFormatter());
 
581
      $task->run(array(), array());
581
582
 
582
583
      $luceneIndex = new agLuceneIndex(array('agStaff', 'agFacility', 'agScenario', 'agScenarioFacilityGroup', 'agOrganization'));
583
584
      $luceneIndex->indexAll();