OddOneOut/Better-WordPress-Google-XML-Sitemaps — pull request #5 by DeanMarkTaylor (2013-03-17 11:00:31+00:00)
Title: Moved cache folder to "/wp-content/cache/bwp_gxs/"

The cached content should not be in the plugins folder.
Changed cache folder to use the standard directory for caching content `/wp-content/cache/bwp_gxs/`.

The `/wp-content/` folder should have the right permissions after standard hardening of WordPress user / directory permissions, the current method of using the plugins folder does not.

This is technically incomplete as there is no code to create the folder `/wp-content/cache/bwp_gxs/`, perhaps with the exception of documenting the location of the folder and the requirement for it in the installation instructions.
Although this is no less complete when compared to the current code on "good" hosts the plugin folder will be locked down security wise and the "cache" folder will not be writeable.

Users will be warned by the checks to ensure the folder is writeable.

Also added support to override the location of the cache folder via adding a line similar to the following to `wp-config.php`:
`
define( 'BWP_GXS_CACHE_DIR', dirname( __FILE__ ) . '/wp-content/cache/my-custom-cache-folder-for-bwp-gxs/' );
`

The following actions should probably also be taken:
1. Document the cache location change.
2. Add code to create the cache folder, should probably use `WP_Filesystem` http://ottopress.com/2011/tutorial-using-the-wp_filesystem/
3. Add code to create a `.htaccess` in the new cache folder.