While I can use this on D6 those other options are only available on D7.

Did I miss something?

Comments

pounard’s picture

While I can use this on D6 those other options are only available on D7.

I'm not sure I really understood your question, can you reformulate? What is this, do you mean "Cache Backport"? And what is "Those other options"?

Just to freshen up a bit, cache backends are only OOP oriented components responding to a common interface which goal is to access a specific cache backend.

Cache Backport is a "cache.inc" core file replacement that allow to use those components that were originally developped for D7. This means you can download the APC project D7 version, you of course cannot enable the module, but you can use its cache backend component (which is in a separate .inc file) thanks to the new "cache.inc" replacement.

socialnicheguru’s picture

You answered it.

so if I downloaded apc for d7 on my d6 platform, could I take advantage of its cache backend component? If so how?

pounard’s picture

Start by reading the documentation :) I'm not joking but in the issue queue here there already are support requests for this question, and a bit of documentaiton provided in the package.

#1098948: Write a better documentation and sample settings file

It's basically no more that some lines to add in the settings.php file.

http://drupalcode.org/project/cache_backport.git/blob_plain/HEAD:/INSTAL...

pounard’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mattwmc’s picture

Sorry. Newbie, here.

So just add this to the settings.php for APC (after installing)?

That's it?

$conf['cache_inc'] = 'sites/all/modules/cache_backport/cache.inc';
$conf['cache_backends'][] = 'sites/all/modules/apc/drupal_apc_cache.inc';
$conf['cache_class_menu'] = 'DrupalAPCCache';

(Edited per comment below to fix path in code)

pounard’s picture

Pretty much yes. Beware of the typo error in the first line path (missing /).