Home › Forums › ACF PRO › ACF Performance › Reply To: ACF Performance
Yes, you can store it somewhere outside of the theme. Here’s an example how to set it in the uploads folder:
add_filter('acf/settings/save_json', 'my_acf_json_save_point');
function my_acf_json_save_point( $path ) {
// update path
$upload_path = wp_upload_dir();
$path = $upload_path['basedir'] . '/my-custom-folder';
// return
return $path;
}
I believe there are no distinct differences between those functions. You can check it yourself by using a query monitoring plugin like this one: https://wordpress.org/plugins/query-monitor/.
If your site is query intensive, I suggest you use a cache plugin instead.
I hope this helps 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.