Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
Hello, I have changed comments args thats querying commentsÂ
add_filter("wpdiscuz_comments_args", function ($args) use ($profile){
$args[ 'meta_key' ] = 'xxx';
$args[ 'meta_value' ] = $profile->id;
$args[ 'wpdType' ] = $profile->id; // need to add this to get correct cached results
return $args;
});
I get correct results but is geting cached without my custom args. Problem is cache (its file name) which dont support any custom args.Â
$fileName = md5(implode(",", $commentsArgs["user_roles"]) . $commentsArgs["wpdType"] . $commentsArgs["last_parent_id"] . $commentsArgs["page"] . $commentsArgs["order"] . $commentsArgs["orderby"]) . "_" . $commentsArgs["last_parent_id"];
I need to modify cached file name that i get results with my custom args (meta_key, meta_value)
My temporary fix is adding something specific ($profile->id) to $args['wpdType'] but i dont exactly know what side effect I can get.
Â
Please add filter for $filename variable 🙂
Hi
I'm going to ask the developers about this request. I'll update the topic once I get news for you.