Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have an ajax button in a form that works the first time a page is loaded in the morning, but after that, i guess something is cached and clicking the ajax button then does nothing.
Any ideas as to what I can change to stop this happening?
When I disable APC module and go back to using default db cache, all is well.
Comments
Comment #1
atlea CreditAttribution: atlea commentedHi,
core use cache_form to store form states. There is an easy fix, though.
Add this to your settings.php:
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
Atle
http://newreach.no
Comment #2
modstore CreditAttribution: modstore commentedThanks for this, seems to have done the trick.
Comment #3
atlea CreditAttribution: atlea commentedNo problem! :)
Comment #4
kobee CreditAttribution: kobee commentedI've the same problem, but
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
Don't fix it..
Any others idea?
Comment #5
kobee CreditAttribution: kobee commentedComment #6
kobee CreditAttribution: kobee commentedSorry,
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
fix it..I had another related problem, if someone is looking for this bug, you can check the Microcaching.
https://drupal.org/node/1353582