Closed (fixed)
Project:
Google Programmable Search Engine
Version:
5.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
9 Sep 2025 at 22:11 UTC
Updated:
5 Jan 2026 at 16:19 UTC
Jump to comment: Most recent
Comments
Comment #2
miwayha commentedI've worked around this issue with the following:
/**
* Implements hook_form_FORM_ID_alter().
*/
function mymodule_form_google_cse_search_box_form_alter(
&$form,
FormStateInterface $form_state,
$form_id
) {
$form['#cache']['max-age'] = 0;
}
The problem with this approach is that it gets autoplaceholdered, which can cause issues with bigpipe.
Comment #3
mark_fullmerThanks for reporting this. I'm thinking that the appropriate fix here, based on what you've outlined, would be to add a cache context to the block so that the render caching is able to vary by user. Something along the lines of:
Would you be able to see if the above method works for your use case?
Comment #5
mark_fullmerComment #6
mark_fullmer