Support

Account

Home Forums ACF PRO ACF Performance Reply To: ACF Performance

  • Hi @jasonthecodezombie-co-uk

    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 🙂