Development

Changeset 7335

You must first sign up to be able to contribute.

Changeset 7335

Show
Ignore:
Timestamp:
02/04/08 15:54:56 (10 months ago)
Author:
fabien
Message:

moved lock files to cache dir

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/task/cache/sfCacheClearTask.class.php

    r6931 r7335  
    163163  { 
    164164    // create a lock file 
    165     $this->filesystem->touch(sfConfig::get('sf_root_dir').'/'.$lockName.'.lck'); 
     165    $this->filesystem->touch(sfConfig::get('sf_cache_dir').'/'.$lockName.'.lck'); 
    166166 
    167167    // change mode so the web user can remove it if we die 
    168     $this->filesystem->chmod(sfConfig::get('sf_root_dir').'/'.$lockName.'.lck', 0777); 
     168    $this->filesystem->chmod(sfConfig::get('sf_cache_dir').'/'.$lockName.'.lck', 0777); 
    169169 
    170170    // remove cache files 
     
    172172 
    173173    // release lock 
    174     $this->filesystem->remove(sfConfig::get('sf_root_dir').'/'.$lockName.'.lck'); 
     174    $this->filesystem->remove(sfConfig::get('sf_cache_dir').'/'.$lockName.'.lck'); 
    175175  } 
    176176} 
  • branches/1.1/lib/task/log/sfLogRotateTask.class.php

    r6931 r7335  
    120120    { 
    121121      // create a lock file 
    122       touch(sfConfig::get('sf_root_dir').'/'.$app.'_'.$env.'.lck'); 
     122      touch(sfConfig::get('sf_cache_dir').'/'.$app.'_'.$env.'.lck'); 
    123123 
    124124      // if log file exists rotate it 
  • branches/1.1/lib/task/project/sfProjectDisableTask.class.php

    r6931 r7335  
    5050 
    5151    $lockFile = $app.'_'.$env.'.lck'; 
    52     if (!file_exists(sfConfig::get('sf_root_dir').'/'.$lockFile)) 
     52    if (!file_exists(sfConfig::get('sf_cache_dir').'/'.$lockFile)) 
    5353    { 
    5454      $this->filesystem->touch($lockFile); 
  • branches/1.1/lib/task/project/sfProjectEnableTask.class.php

    r6931 r7335  
    5050 
    5151    $lockFile = $app.'_'.$env.'.lck'; 
    52     if (file_exists(sfConfig::get('sf_root_dir').'/'.$lockFile)) 
     52    if (file_exists(sfConfig::get('sf_cache_dir').'/'.$lockFile)) 
    5353    { 
    5454      $this->filesystem->remove($lockFile); 
  • branches/1.1/lib/util/sfCore.class.php

    r7322 r7335  
    163163  static public function checkLock() 
    164164  { 
    165     if (sfToolkit::hasLockFile(SF_ROOT_DIR.DIRECTORY_SEPARATOR.SF_APP.'_'.SF_ENVIRONMENT.'.lck', 5)) 
     165    if (sfToolkit::hasLockFile(sfConfig::get('sf_cache_dir').DIRECTORY_SEPARATOR.SF_APP.'_'.SF_ENVIRONMENT.'.lck', 5)) 
    166166    { 
    167167      // application is not available