This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Database Caching in Codeigniter

February 28, 2013 6:11am

Subscribe [1]
  • #1 / Feb 28, 2013 6:11am

    Musaddiq Khan

    17 posts

    I have configure the site with multiple outlets and creating the cache for each outlet.
    The cache path as follow

    $db['default']['cachedir'] = 'application/cache/outlet1/';
    $db['default']['cachedir'] = 'application/cache/outlet2/';

    Now if the category is changed in admin panel i want to clear the cache for each outlet.
    Is it possible to set the cache path at run time so that cache for each outlet i.e “outlet1” and “outlet2” can be cleared.
    I’ve tried to set the path at run time in my controller as below

    $db['default']['cachedir'] = 'application/cache/outlet1';
    $db['default']['cachedir'] = 'application/cache/outlet2';

    but it clear the cache file of outlet1 whic is set in


ExpressionEngine News

#eecms, #events, #releases