Skip to content

Instantly share code, notes, and snippets.

@robzienert
Created September 18, 2009 21:36
Show Gist options
  • Save robzienert/189307 to your computer and use it in GitHub Desktop.
Save robzienert/189307 to your computer and use it in GitHub Desktop.
<?php
// Proof of concept
class Oakland_Application extends Zend_Application
{
protected function _loadConfig($file)
{
$environment = $this->getEnvironment();
if ($environment == 'development') {
return parent::_loadConfig($file);
}
$config = apc_fetch('Zend_Application_Config');
if (!$config) {
$config = parent::_loadConfig($file);
apc_store('Zend_Application_Config', $config);
}
return $config;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment