I'm looking to improve my deployment process, which currently uses Capistrano to deploy from a hosted git repository. For the most part, this is working pretty well.
However, I'm running into problems with deploying WP-Supercache:
- Activating the WP-Supercache plugin creates a file
wp-contentfolder that includes an absolute (and server specific path) to a file in the WP-Supercache plugin folder.
- Cache files are stored in
wp-content/cachewhich I'm (correctly) excluding from git.
The searching I've done has shown me a couple of possible alternatives for
- Have the deployment task create the advanced-cache.php file each time (through the use of a template).
- On the initial deployment, have the plugin create the correct file on the server, then move it to a shared folder and have a deployment task that symlinks to it.
For the cache files, the strategy seems to be to move the cache folder to the shared folder and add a deployment task to symlink it.
So, does anyone have a good solution / process for this - doesn't necessarily need to be Capistrano related, I think this issue surfaces for any deployment that includes WP-Supercache.