Hi, it would be nice to see this in D6 version also. Thank you in advance.

Comments

rdeboer’s picture

Hi arpeggio,

I see what I can do -- D6 seems soooo long ago now!

Luckily this is a small module so should not be too much work -- just hope that core's cache.inc hasn't changed too much between D6 and D7...

Rik

arpeggio’s picture

StatusFileSize
new4.82 KB
new7.14 KB

Hi Rik,

I created a start-up point for Session Cache API support of D6. The cache system in D6 doesn't changed between D6 and D7.

During the installation test, the cache_session_cache table won't create using this code in session_cache.install:

/**
 * Implements hook_schema().
 */
function session_cache_schema() {
  $schema = array();
  if (!db_table_exists('cache_session_cache')) {
    $schema['cache_session_cache'] = drupal_get_schema_unprocessed('system', 'cache');
    $schema['cache_session_cache']['description'] = 'Cache table for Session Cache API';
  }
  return $schema;
}

I modified the session_cache.install cache_session_cache table creation to:

/**
 * Implements hook_install().
 */
function session_cache_install() {
  if (!db_table_exists('cache_session_cache')) {
    $schema = drupal_get_schema_unprocessed('system', 'cache');
    $schema['description'] = 'Cache table for Session Cache API';
    db_create_table($ret, 'cache_session_cache', $schema);
  }
}

One more, I temporarily remove the session_cache_file module as there are lot of work that needs to be done. D6 don't have a private folder feature.

Thanks,
Roland

rdeboer’s picture

Thanks so much Roland!
Will apply ASAP.
Rik

rdeboer’s picture

Version: 7.x-1.x-dev » 6.x-1.0-beta1
Assigned: Unassigned » rdeboer
Status: Active » Fixed

It's in with creditation: http://drupal.org/node/1797574/committers

Thanks so much for the port Roland!
Rik

arpeggio’s picture

Hi Rik,

You're welcome.

Thank you for the creditation.
Roland

rdeboer’s picture

Status: Fixed » Closed (works as designed)

All good.