• We are getting slow queries when creating a new story, so it takes around 60 seconds to load the stories editor. The cause could be our media library being huge. Is it possible to limit somehow the query so the plugin limits the load of elements from database/media library for the last week or the last month? in order to see if that avoids slow queries and improve loading of stories editor. Thank you.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    You could try the following code in a custom plugin to speed up the media library loading in the editor:

    add_filter(
    	'web_stories_editor_preload_paths',
    	static function ( $preload_paths ) {
    		array_shift( $preload_paths );
    		return $preload_paths;
    	}
    );
    add_filter( 'web_stories_hide_auto_generated_attachments', '__return_false', 100 );

    This way, the media library will load a little bit later after opening the editor, and might show some different results, but faster.

Viewing 1 replies (of 1 total)
  • The topic ‘Slow queries when creating a new story’ is closed to new replies.