Notifications
Clear all

[Closed] Performance

16 Posts
3 Users
0 Reactions
11.3 K Views
Posts: 33
 jost
Topic starter
(@jost)
Eminent Member
Joined: 8 years ago
 
I load tested the code change several times and cannot see any real difference.  
Restarted mysql, nginx, php, and cleared all caches for every test.
Running on PHP 7.
 
 
Posted by: Robert

During the last month we've made lots of improvement in wpForo next version. The next 1.2.1 comming soon. At the moment I'd recommend do this small change which may decrease your SQLs 30% off. This was a bug in 1.2.0 version.

Open /wpforo/wpf-includes/class-permissions.php file

Find this line:

if( isset( $this->wpforo->post_options['lang'] ) && $this->wpforo->post_options['lang'] ){

Change to this:

if( isset( $this->wpforo->general_options['lang'] ) && $this->wpforo->general_options['lang'] ){

It should look like this:

Page 4 / 4