Update README.txt to address cache_form risk

Created on 8 August 2017, about 7 years ago
Updated 30 July 2024, about 2 months ago

Step 2b in README.txt is currently the following:

- Step 2b
Add the following code to your settings.php file:

/**
* Add APC Caching.
*/
$conf['cache_backends'][] = 'sites/all/modules/apc/drupal_apc_cache.inc';
$conf['cache_default_class'] = 'DrupalAPCCache';
//$conf['apc_show_debug'] = TRUE; // Remove the slashes to use debug mode.

This is a bad idea because it will put cache_form in APC, and cache_form isn't really cache, it's session state data. It's known that storing cache_form in APC causes problems like #1342998: AJAX in views form stops working .

How about we change Step 2b to the following?

- Step 2b
Add the following code to your settings.php file:

/**
* Add APC Caching.
*/
$conf['cache_backends'][] = 'sites/all/modules/apc/drupal_apc_cache.inc';
$conf['cache_default_class'] = 'DrupalAPCCache';
// The 'cache_form' bin must be assigned to non-volatile storage.
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
//$conf['apc_show_debug'] = TRUE; // Remove the slashes to use debug mode.

📌 Task
Status

Fixed

Version

1.0

Component

Documentation

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024