Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
While migrating D6 to D8 I've noticed the pageviews count hasn't carried over. This is disappointed as some of my pages have over 1 million views, anyone know how get that data over?
While not specifically a “coding” question, I’m having an issue in Drupal 8 with menus. I’ve tried the following with both the Aegan Theme I’d like to use and the default Bartik Theme - as a means to double-check it wasn’t something either in the Aegan Theme, or in my menu choices…
I have successfully disabled caching for logged in users of my form with a hook:
function fest_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
//disable form cache
$form['#cache'] = ['max-age' => 0];
}
This is working perfectly for all logged in users: Every time the page is refreshed, the form is created newly.
However, this does not work for the Anonymous user, s/he always gets the same cached form no matter what.