I’ve just updated acorn to v3 and prior to this i was using the following adding the following filter to functions.php to change the cache directory as the host I’m using doesn’t allow me to use wp-content.
add_filter('acorn/paths.storage', function ($path) {
return '/tmp/sage-cache/';
});
It looks as though this filter has changed/removed and I was wondering what is the best way now to change the cache path?
If you’re using Bedrock, you can define ACORN_STORAGE_PATH in your config/application.php. If you’re not using Bedrock, you can define it in your wp-config.php file.