Learn about Centmin Mod LEMP Stack today
Register Now

Put expiration on memcached backend using xenforo

Discussion in 'Other Centmin Mod Installed software' started by Maester Aemon, Apr 18, 2016.

Tags:
  1. Maester Aemon

    Maester Aemon New Member

    20
    3
    3
    Mar 24, 2016
    Ratings:
    +5
    Local Time:
    8:35 AM
    1.9.12
    Hi,

    I am wondering if its possible to put an expiration date on the files that gets cached through xenforo in Libmemcached.

    This what I currently have in my config
    Code:
    $config['cache']['backend'] = 'Libmemcached';
    
    $config['cache']['backendOptions'] = array(
    'servers' => array(
    array(
    'host' => '127.0.0.1',
    'port' => 11211,
    'weight' => 1
    )
    )
    );
    Since I cache a lot of images and want them to be removed after 1 day, I have to flush the server every 24 hours, so I was wondering if there's a way to make them expire.