Skip to content
Snippets Groups Projects
Select Git revision
  • 7.x-1.0-beta7
  • 7.x-2.x default
  • 7.x-1.x
  • cherry-pick-ed724c42
  • cherry-pick-c5611ffc
  • cherry-pick-021ec04e
  • cherry-pick-1c677462
  • cherry-pick-3b774fdc
  • cherry-pick-6b8014c2
  • cherry-pick-7888f5f1
  • cherry-pick-0920018d
  • 5.x-1.x
  • 6.x-1.x
  • 7.x-2.0-beta9
  • 7.x-2.0-beta8
  • 7.x-1.0-beta8
  • 7.x-1.0-beta6
  • 7.x-1.0-beta5
  • 7.x-1.0-beta4
  • 7.x-1.0-beta3
  • 7.x-1.0-beta2
  • 7.x-1.0-beta1
22 results

apc

  • Clone with SSH
  • Clone with HTTPS
  • Alberto Paderno's avatar
    Issue #3464533: Improve the tests
    Alberto Paderno authored
    47aed03f
    History

    Installation

    Step 1

    Enable the module and verify the status page (/admin/reports/status) shows the APCu extension is installed.

    Step 2

    Choose whenever you want the APC extension for all the cache bins used from Drupal or just for some cache bins. APC normally has a limited memory available (32M) and should be used to cache the entries which are mostly used, since it is the cache closest (and maybe fastest) to PHP. When the memory allocated by APC is big enough to cache the entire Drupal cache you can follow Step 2b; otherwise you should follow Step 2a.

    Step 2a

    Add the following lines to your settings.php file

    /**
     * APC cache settings.
     */
    $conf['cache_backends'][] = 'sites/all/modules/apc/drupal_apc_cache.inc';
    $conf['cache_class_cache'] = 'DrupalAPCCache';
    $conf['cache_class_cache_bootstrap'] = 'DrupalAPCCache';
    
    // Uncomment the following line to enable debugging.
    // $conf['apc_show_debug'] = TRUE;

    Step 2b

    Add the following lines to your settings.php file.

    /**
     * APC cache settings.
     */
    $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';
    
    // Uncomment the following line to enable debugging.
    // $conf['apc_show_debug'] = TRUE;

    Step 3

    Visit your site and verify it still works.

    Step 4 (optional)

    When DrupalAPCCache is used for the cache_page bin, the following lines can be added to the settings.php file used for the site.

    $conf['page_cache_without_database'] = TRUE;
    $conf['page_cache_invoke_hooks'] = FALSE;