Performance hit using custom fields (media) even when not displaying them

Discussion regarding Joomla! 3.x Performance issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
bjrn
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Tue Jan 29, 2013 2:32 pm

Performance hit using custom fields (media) even when not displaying them

Post by bjrn » Wed Aug 30, 2017 9:59 am

On a site I thought the new custom fields would be a great addition. For a certain category I set a number of custom fields, including a few of the media type. This resulted in a significant performance hit loading the category blog page of that category. What's more, I set all of the media fields to be shown on on Administration only (not the site). Even so it seems like Joomla goes through and checks the fields and the values set, the folders and files in those folders.

Is there any way to prevent Joomla from churning through these values, files and folders when they aren't supposed to be displayed anyway?


Here's an example from my slow log

Code: Select all

script_filename = /website/index.php
[0x0000000802616250] is_dir() /website/libraries/joomla/filesystem/folder.php:622
[0x0000000802616100] _items() /website/libraries/joomla/filesystem/folder.php:523
[0x0000000802615fe0] files() /website/administrator/components/com_fields/libraries/fieldsplugin.php:34
[0x0000000802615c20] onCustomFieldsGetTypes() /website/administrator/components/com_fields/libraries/fieldsplugin.php:265
[0x0000000802615b60] isTypeSupported() /website/administrator/components/com_fields/libraries/fieldsplugin.php:105
[0x0000000802615970] onCustomFieldsPrepareField() /website/libraries/joomla/event/event.php:70
[0x00000008026158c0] update() /website/libraries/joomla/event/dispatcher.php:160
[0x00000008026157e0] trigger() /website/administrator/components/com_fields/helpers/fields.php:198
[0x0000000802615670] getFields() /website/plugins/system/fields/fields.php:326
[0x0000000802615550] display() /website/plugins/system/fields/fields.php:289
[0x0000000802615460] onContentAfterDisplay() /website/libraries/joomla/event/event.php:70
[0x00000008026153b0] update() /website/libraries/joomla/event/dispatcher.php:160
[0x00000008026152d0] trigger() /website/components/com_content/views/category/view.html.php:119
[0x0000000802614250] display() /website/libraries/legacy/controller/legacy.php:671
[0x00000008026140c0] display() /website/components/com_content/controller.php:113
[0x0000000802613dc0] display() /website/libraries/legacy/controller/legacy.php:709
[0x0000000802613d20] execute() /website/components/com_content/content.php:39
[0x0000000802613a70] [INCLUDE_OR_EVAL]() /website/libraries/cms/component/helper.php:389
[0x00000008026139f0] executeComponent() /website/libraries/cms/component/helper.php:364
[0x00000008026138d0] renderComponent() /website/libraries/cms/application/site.php:191

Locked

Return to “Performance - Joomla! 3.x”