If you are using apc caching on
openshift you may have noticed that your cache gets binned each time you
git push, the reason for this is that the push restarts your gear's
apache process. To keep the same process, thus keep the cache you can
enable hot deployment.
$ touch .openshift/markers/hot_deploy $ git add .openshift/markers/hot_deploy $ git commit -m “enabling hot_deploy”
Now you can push as many times as you like without invalidating the cache... of course if you now need to clear the cache or restart the process you have to do it manually with
$rhc app restart -a myapp