iSaumya
Forum Replies Created
-
Glad to hear that this issue had been fixed in your codebase and will be part of the next release.
Marking this thread as resolved now.
The plugin already has a link to my paypal but unfortunately, most people don’t like to pay. And due to extreme work of my day job, I barely get any time to keep it updated.
Hi,
This plugin has been non-maintained for quite some time now as I don’t get any free time. But if I do, I do plan to replace the admin ajax with WP REST API calls.
Forum: Plugins
In reply to: [WP Server Health Stats] Permission Check FailedHi,
Yes I am aware of the issue. I am just not getting any time to fix this. Will get to it as soon as I can.Forum: Developing with WordPress
In reply to: How to exclude “attachments” from Hyperlink Search?Thanks a lot for the help @mateico. I had to tweak the code a little bit as for media search the path used is
/wp/v2/mediaand not/wp/v2/searchlike it’s used for post or term.Anyway, here is my updated code:
// Remove the "term" and "attachment" items from the hyperlink search results in the block editor
add_filter('rest_request_after_callbacks', function($response, $handler, $request ) {
// Get the route
$route = $request->get_route();
// Check if the request is for the block editor's search
if (strpos($route, '/wp/v2/search') !== false) {
// Get the search query, per_page and type
$search_query = $request->get_param('search');
$per_page = $request->get_param('per_page');
$search_type = $request->get_param('type');
// If the type is 'term', return an empty response
if ($search_type === 'term' && !empty($search_query) && !empty($per_page)) {
return new \WP_REST_Response([], 200);
}
} elseif (strpos($route, '/wp/v2/media') !== false) { // Check if the request is for the media library
// Get the search query and per_page
$per_page = $request->get_param('per_page');
$search_query = $request->get_param('search');
// If the search query and per_page are not empty, return an empty response
if (!empty($search_query) && !empty($per_page)) {
return new \WP_REST_Response([], 200);
}
}
// Return the response
return $response;
}, 10, 3 );But to be honest, this feels more like a hack than a proper solution. There should have been a filter allowing users to modify the post types and taxonomies that they would like to include/exclude from the hyperlink search.
Thanks again for your response and all the help. Really can’t thank you enough. 🙂
Hi,
Can you please share the error so that we can see what error it is causing? Without knowing the error, it is hard to make a guess.Thank you so much for all the love <3
That was the plan. Not sure what the Optimole team has in mind about this now. As this is no longer needed since the introduction of cache rule.
I’m sure the team is looking into it.
Hi you can use the cronjob to purge cache. The option is there inside the plugin settings.
So sorry to hear about such an experience that you had. Also, glad to hear that your issue has finally been resolved.
Hi,
Since the introduction of the Cache Rule, the worker is not needed for Cache operation. Yes, the worker is super powerful and can do many amazing things. But it is no longer needed for cache operations.Hi,
It seems you have not enabled the Cloudflare Cache integration inside the plugin settings. Once you enable that the plugin will auto-add the cache rules that will allow you to serve your pages from Cloudflare CDN.Hi,
This plugin does not uses worker or worker KV instead it leverages Cloudflare Cache Rules.Hi,
I think you need to select the last 20 options for the preloader to work. But you do have a good point. Maybe incorrect messaging in the plugin settings.