Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
491 views
in Q2A Core by
Can someone please help me with this..

I am facing a performance issue where occasionaly there is delay in loading the pages and i narrowed down the reason to be this.

Line 39 - qa-include/Q2A/Util/Metadata.php

$content = file_get_contents($metadataFile);

This above function call seems to take forever and causing issues with response times. is there anyway i can bypass this code or make it faster . and what is the purpose of this code ?
Q2A version: 1.7.4

1 Answer

0 votes
by

The metadata is used for plugins, and is necessary in order to know whether a plugin can run in Q2A. Not sure why that would be causing problems as it's only reading a few files.

You could try removing some plugins.

Or if you're sure all plugins are working fine, remove the $metadata lines from the qa_load_plugin_files function in qa-base.php. Highlighted here. That will bypass reading the files.

...