Caching plugin and normal controllers with duplicate names

前端 未结 3 1890
甜味超标
甜味超标 2021-01-27 12:28

I\'m running into a problem related to caching, plugins and duplicate model names in Cake 2.0. My application has several controllers containing only actions for public use (vie

3条回答
  •  迷失自我
    2021-01-27 13:25

    May be it would be helpfull to override Cake' standard cache file names for Plugin to make Cache engine keep it separately. In main bootstrap file while loading plugin:

    CakePlugin::loadAll(array('Plugin' => array('bootstrap' => true));
    

    In Plugin direcrory /app/Plugin/Plugin/Config/bootstrap.php

     'File',
        'prefix' => 'cake_core_plugin_',
        'path' => CACHE . 'persistent' . DS,
        'serialize' => true,
        'duration' => '+999 days',
    ));
    ?>
    

提交回复
热议问题