Zend Framework Cache creates new file and doesnt load it -
i'm having little problem zend framework full page cache. current bootstrap configuration looks this:
$dir = public_path . "/tmp/"; $frontendoptions = array( 'lifetime' => 6000000000, 'content_type_memorization' => true, 'default_options' => array( 'cache_with_get_variables' => true, 'cache_with_post_variables' => true, 'cache_with_session_variables' => true, 'cache_with_cookie_variables' => true, ), 'regexps' => array( '^/.*' => array('cache' => true), ) ); $backendoptions = array( 'cache_dir' => $dir ); // getting zend_cache_frontend_page object $cache = zend_cache::factory('page', 'file', $frontendoptions, $backendoptions); $cache->start();
which worked before changing our development system live one.
now if enable caching system creates correct cached file in correct path doens't load it.
so every request cache file created old 1 never gets loaded.
maybe has had problems before , can give me hint?
thanks in advance!
there might issue permission move development environment live.
the tmp
directory writable myself , other users of same group , apparently zend access files user. solution chmod 777
on folder, making writable.
let me know if can more.
Comments
Post a Comment