bradlol
Forum Replies Created
-
Ok, I tried that. I ran that command on WP-CLI, but it didn’t seem to stop lazy indexing, as my database still got flooded with those queries.
Anyway WP-CLI wouldn’t be an option either. Having in mind I have over 1m posts and that single query takes around 7s(on least busiest time), indexing posts would take over 3 months. I also have over one 1m users and 200k+ terms, so god knows how long it would take to index it all.I’m on WordPress 5.6. I don’t think 5.7.1 would change anything.
As for manual update, would it stop indexables from lazy loading?
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] Filtering post by categoryIs there any hook where I can change query or do I have to edit your code? Cause I see
// Filter to change the solarium query do_action( WpSolrFilters::WPSOLR_ACTION_SOLARIUM_QUERY, array( WpSolrFilters::WPSOLR_ACTION_SOLARIUM_QUERY__PARAM_SOLARIUM_QUERY => $solarium_query, WpSolrFilters::WPSOLR_ACTION_SOLARIUM_QUERY__PARAM_SEARCH_TERMS => $wpsolr_query->get_wpsolr_query(), WpSolrFilters::WPSOLR_ACTION_SOLARIUM_QUERY__PARAM_SEARCH_USER => wp_get_current_user(), ) );but it is an action not filter, which as far as I know is not supposed to change anything.
Forum: Plugins
In reply to: [WP Redis] Possibility to stop caching specific optionAs I said under heavy load it seemed harder for that event to save, so I think it might be somehow caused by get_option calls in time while it’s cache is being set, but would be rather hard to fix.
Forum: Plugins
In reply to: [WP Redis] Possibility to stop caching specific optionI think I solved my problem with ‘pre_option_cron’ filter where I get value from database instead of cache.
Anyhow to set up cron I use ‘wp_schedule_single_event’, then I was calling ‘wp_cache_delete ( ‘alloptions’, ‘options’ )’ hoping for cache to refresh and get updated cron array but it doesn’t seem to have any effect.