I don’t know if it applies, but I don’t think reducing the file size is going to save you more that a millisecond or 4. ACF is using file_get_contents(). I seriously doubt that the size of the file is going to matter much to this function since it’s all happening on the server. According to https://www.raditha.com/wiki/Readfile_vs_include/ it only takes .00564 seconds to read a 1MB file and only .00152 seconds to read a 32KB file.
Viewing 2 posts - 1 through 2 (of 2 total)
The topic ‘Optimizing Local JSON output by removing defaults’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users