--
Tom Boutell
P'unk Avenue
215 755 1330
punkave.com
window.punkave.com
You could have problems caused by class files that aren't timestamped
as newer than the previously deployed version masquerading as this
other thing... we had that issue before we got the perfect rsync
options going in apostrophe:deploy (:
--
--
That's seriously screwy.
How old is your build of APC?
--
But Pete you would have had to go out of your way to tell Doctrine to
use APC for query cache, did you do that?
--
public function configureDoctrine(Doctrine_Manager $manager)
{
$manager->setAttribute(Doctrine::ATTR_QUERY_CACHE, new Doctrine_Cache_Apc());
}
I am certainly curious if the prefix thing exists as well.
--
public function configureDoctrine(Doctrine_Manager $manager)
{
$manager->setAttribute(Doctrine::ATTR_QUERY_CACHE, new Doctrine_Cache_Apc(array('prefix' => 'something_unique'));
}
--
$ini = parse_ini_file(sfConfig::get('sf_config_dir').'/properties.ini', true);
$name = $ini['name'];
array('prefix' => $name);
To avoid having to hardcode this for every project.
Jeremy is right that APC has to be cleared on deployments if they
involve database migrations and you use the Doctrine APC cache option.
At one point we had APC clearing as part of apostrophe:deploy; it
tickled a special URL on the site whose purpose was simply to call
apc_clear_cache from a web action (command line PHP can't see the same
APC cache). We removed that code because improvements to our rsync
usage made it unnecessary for the purposes we originally added it for.
But the idea is still a viable one.
On Sat, Sep 3, 2011 at 10:21 AM, Jeremy Kauffman <jer...@flickswitch.cc> wrote:
--
I think keeping that script around would be acceptable given the
localhost restriction and the essential harmlessness of clearing the
cache. You could also put a password in there instead of a localhost
restriction.
A 10% improvement is nothing to sneeze at, we should consider
integrating this into our practice.