Forum Replies Created
-
f.schatzParticipant2 years, 10 months ago in reply to: WordPress Search Query gets executet although using SOLR #37578
SORRY, i missed copying all files. Now everything is fine. Thanks a lot for your great support.
f.schatzParticipant2 years, 10 months ago in reply to: WordPress Search Query gets executet although using SOLR #37576Sadly its not. Thats why the question what exactly you changed than i could debug on our side too?
f.schatzParticipant2 years, 10 months ago in reply to: WordPress Search Query gets executet although using SOLR #37574Thanks a lot. But i think its still executed?
Stack is
WP_Query->get_posts
WP_Query->query
WP->query_posts
wpsolr\core\classes\services\WPSOLR_Service_Container::get_is_replace_by_wpsolr_query
wpsolr\core\classes\services\WPSOLR_Service_Container::action_wp_loaded
do_action(‘wp_loaded’)
require_once(‘wp-settings.php’)
require_once(‘/var/www/clients/client2/web2/web/www/web/wp-config.php’)
require_once(‘wp-load.php’)
require(‘wp-blog-header.php’)What did you changed? Maybe i can have a look to?
f.schatzParticipant2 years, 10 months ago in reply to: WordPress Search Query gets executet although using SOLR #37520Could you already check this? Its a pretty huge issue as the search is really slow due to that.
f.schatzParticipant2 years, 10 months ago in reply to: WordPress Search Query gets executet although using SOLR #37513No. But as you see the stack
WPSOLR_Service_Container::get_is_replace_by_wpsolr_query()
if ( ! is_admin() ) {
$wp->parse_request();
add_filter( ‘posts_pre_query’, [ self::class, ‘posts_pre_query’ ], 10, 2 );
$wp->query_posts();
remove_filter( ‘posts_pre_query’, [ self::class, ‘posts_pre_query’ ], 10 );
do_action( WPSOLR_Events::WPSOLR_ACTION_IS_REPLACE_BY_WPSOLR_QUERY_AFTER_POST_PRE_QUERY );
}and
static function posts_pre_query( $retval, $query ) {
// Prevent executing SQL before deciding replacing the query
return null;
}posts_pre_query is empty an does not prevent anything?