1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sessions from the Cache

Discussion in 'General XenForo Discussion and Feedback' started by Marcus, Oct 27, 2011.

  1. Marcus

    Marcus Well-Known Member

    How do I see a difference with the new Sessions from the Cache feature? When I put the new line into my xenforo 1.1 beta 4 config.php along with the apc cache instruction, I see 10 queries per page as before without adding this line to config.php.

    beta 4 is around 5-10% faster than beta 3.
     
    Andy.N likes this.
  2. JulianD

    JulianD Well-Known Member

    I couldn't see any difference as well in the query count reported when $debug = true.
     
  3. mrGTB

    mrGTB Well-Known Member

    From what I read, gathered. You only get an advantage from it if using one of the cache systems. Are you using one?
     
  4. jörgk

    jörgk Active Member

    it is working fine. saves a lot of querys.
     
  5. JulianD

    JulianD Well-Known Member

    Yes, I am. I will check later to see if the cache is working as it should.
     
  6. Marcus

    Marcus Well-Known Member

    This is how my xenforo config.php looks like in the cache section. The first line was missing, and because of this the case was not enabled.
    Code:
    $config['cache']['enabled'] = true;
    $config['cache']['cacheSessions'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions'] = array(
                                            'caching'                      => true,
                                            'automatic_serialization'      => true,
                                            'lifetime'                      => 3600,
                                            'cache_id_prefix' => 'foro'
    );
    
    $config['cache']['backend'] = 'Apc';
    
    Now it takes 6 queries instead of 10.
     
    DSF likes this.
  7. DSF

    DSF Well-Known Member

    It is useful to increase lifetime ?
     
  8. Floris

    Floris Guest

    This is how XenFans currently has it's config.php with 110b4

    Screen shot 2011-10-28 at 10.11.39 AM.png

    Timing: 0.0580 seconds / DB Queries: 8
     
    p4guru likes this.
  9. swatme

    swatme Well-Known Member

    just wondering when you enabled

    $config['cache']['backend'] = 'File';

    what specific path folder does it save the cache files?
     
  10. Azaly

    Azaly Member

    Could you show you APC config? please :unsure:
     
  11. Floris

    Floris Guest

    Default, with 32MB memory. Bigger sites run with 64.
     
    Azaly likes this.

Share This Page