Skip to content

Instantly share code, notes, and snippets.

@ftassi
Created January 21, 2016 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ftassi/9c06d393b728978bbd60 to your computer and use it in GitHub Desktop.
Save ftassi/9c06d393b728978bbd60 to your computer and use it in GitHub Desktop.
Move cache and log dir to shared memory
public function getCacheDir()
{
if (in_array($this->environment, array('dev'))) {
return '/dev/shm/site/cache/' . $this->environment;
}
return parent::getCacheDir();
}
public function getLogDir()
{
if (in_array($this->environment, array('dev'))) {
return '/dev/shm/site/logs';
}
return parent::getLogDir();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment