@EpsilonAdmin I don't see the error anymore. Give me a day to troubleshoot further
Latest posts made by alihs
-
RE: Able to delete from index
-
RE: Able to delete from index
While here, would like to suggest to add filters for enqueue of js and css files so we could disable them if needed or overwrite them.
Much appreciated
-
RE: Able to delete from index
We have over 600+ posts. Other CPT amounts to ~500 spread across around 7-8 different CPTs.
I keep getting the indexing message.
Memcache/Redis is turned off as well as DB cache, still get the same thing.
Re-indexing does sort it out. -
RE: Able to delete from index
Hi @EpsilonAdmin
Yes, i do have$date_now
and yes its part of an excerpt. I had it fixed by passing empty array instead of returning false.The index refresh keeps on displaying, initially its 257 and then get to 90ish and then again 257. Seems to be an infinite loop
Thanks
-
RE: Able to delete from index
@EpsilonAdmin Thanks for the very prompt reply.
I have the following
add_filter( 'wpfts_index_post', function( $chunks, $post, $is_refresh_raw_cache ) { if ( $post->post_type == 'events' ) { $date_listing = get_post_meta( $post->ID, 'date_listing', true ); if ( $date_listing <= $date_now ) { // i was returning false here, which i now realize was wrong. return array(); } } return $chunks }
On another note
I do get this message but it keeps on repeating itself even when i upgrade the index multiple times.Upon trying to investigate
I found the action but see the value on
z
missing, which i think doesn't then pass on properly down the chain and update the index.I might be completely wrong here. Trying to analyze and help out.
-
Able to delete from index
Do you guys have a filter/hook available to remove items from the index?
We have events that are part of the index but want them removed once they expire. We do this using a custom logic.Thanks