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

atlea’s picture

Hi,

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

modstore’s picture

Thanks for this, seems to have done the trick.

atlea’s picture

Status: Active » Closed (won't fix)

No problem! :)

kobee’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta4

I've the same problem, but
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
Don't fix it..

Any others idea?

kobee’s picture

Status: Closed (won't fix) » Active
kobee’s picture

Status: Active » Closed (fixed)

Sorry, $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