Hello,
I've noticed that with the latest versions of Megafilter there is a huge performance problem when the Json file gets generated. It now adds a lot of useless stuff that makes the file a lot bigger and a lot slower to load.
Let me show with a simple example with just 2 items.
BEFORE
This is how the json file was getting generated with previous Megafilter versions:
https://www.gtabase.com/media/com_jamegafilter/en_gb/2_old.json
As you can see it was very short with just the required information about each item. Each item has:
- Core Info (ID, Lang, Hits, Name, Thumbnail, Catid, Slug, etc)
- Needed Custom Field Values (Value and Frontend_Value)
NOW
However, now, with the current version of Megafilter, this is how the json file gets generated for the same exact 2 items with the same exact data:
https://www.gtabase.com/media/com_jamegafilter/en_gb/2.json
As you can see now the file is much bigger. For each item now it includes:
- Core Info (ID, Lang, Hits, Name, Thumbnail, Catid, Slug, etc) (ok, like before)
- Needed Custom Field Values (value and frontend_value) (ok, like before)
- For each Custom Field now it includes and repeats for EACH Item all Field Params and OPTIONS of it (name and value). So not just the actual values for the item, but also all the custom field options of that custom field. And this GETS REPEATED IN EVERY ITEM! This is totally useless and makes no sense. There is no need to list all the custom field options of a field for each item, just the values matter!
- And it now also includes User Custom Field for the author that created the article. And again this gets repeated for EVERY ITEM. Again this is also useless because they don't get used in any way.
Use Json Formatter if you need to see the problem easier:
https://jsonformatter.curiousconcept.com/
And this is just with 2 items. Imagine what happens with hundreds of items. The custom field options getting repeated for each item, for hundreds of items. It makes the file GIGANTIC.
In addition to having HUGE files for no reason, this of course makes Megafilter a lot slower to index/create these files (because they are bigger), and also it makes them slower to load when loading the page on the frontend.
This is a huge performance issue / unoptimization issue, so please fix it in the next version to make it like it was before.
And if you can please can give me an immediate fix so I can fix it for my sites while waiting for the official update.