print_r($cache) returns:

Zend_Cache_Core Object ( [_backend:private] => Zend_Cache_Backend_File
Object ( [_options:protected] => Array ( [cache_dir] => ../../_tmp/
[file_locking] => 1 [read_control] => 1 [read_control_type] => crc32
[hashed_directory_level] => 0 [hashed_directory_umask] => 448
[file_name_prefix] => zend_cache ) [_backwardCompatibilityArray:protected]
=> Array ( [cacheDir] => cache_dir [fileLocking] => file_locking
[readControl] => read_control [readControlType] => read_control_type
[hashedDirectoryLevel] => hashed_directory_level [hashedDirectoryUmask] =>
hashed_directory_umask [fileNamePrefix] => file_name_prefix )
[_directives:protected] => Array ( [lifetime] => 3600 [logging] => [logger]
=> ) ) [_options:protected] => Array ( [write_control] => 1 [caching] => 1
[automatic_serialization] => 1 [automatic_cleaning_factor] => 10 [lifetime]
=> 3600 [logging] => [logger] => ) [_specificOptions:protected] => Array ( )
[_lastId:private] => [_backwardCompatibilityArray:protected] => Array (
[lifeTime] => lifetime [writeControl] => write_control
[automaticSerialization] => automatic_serialization
[automaticCleaningFactor] => automatic_cleaning_factor [cachedEntity] =>
cached_entity [cacheByDefault] => cache_by_default [cachedMethods] =>
cached_methods [nonCachedMethods] => non_cached_methods [cachedFunctions] =>
cached_functions [nonCachedFunctions] => non_cached_functions [masterFile]
=> master_file [httpConditional] => http_conditional [debugHeader] =>
debug_header [defaultOptions] => default_options [cacheWithGetVariables] =>
cache_with_get_variables [cacheWithPostVariables] =>
cache_with_post_variables [cacheWithSessionVariables] =>
cache_with_session_variables [cacheWithFilesVariables] =>
cache_with_files_variables [cacheWithCookieVariables] =>
cache_with_cookie_variables [makeIdWithGetVariables] =>
make_id_with_get_variables [makeIdWithPostVariables] =>
make_id_with_post_variables [makeIdWithSessionVariables] =>
make_id_with_session_variables [makeIdWithFilesVariables] =>
make_id_with_files_variables [makeIdWithCookieVariables] =>
make_id_with_cookie_variables ) ) 




Waigani wrote:
> 
> can't get Zend_Cache to work.
> 
> function buildAction(){
> 
>       $frontendOptions = array(
> 'automatic_serialization' => true);
> 
> $backendOptions = array(
> 'cache_dir' => '../../_tmp'
> );
> 
> $cache = Zend_Cache::factory('Core', 'File', $frontendOptions,
> $backendOptions);
> 
>               $foo = 'foo';
>               $cache->save($foo, 'acl');      
>               $this->view->message = $cache->load('acl');
> 
> }
> 
> 
> build.phtml:
> 
> <?
> echo $this->message; print_r($this->message);
> 
> 
> All I get is a blank screen. I know that cache should be set up in
> bootstrap. I've just put all the code under an action while I'm debuging.
> 
> Any suggestions? I'm stumped
> 

-- 
View this message in context: 
http://www.nabble.com/Zend_Cache-blank-screen-tf4107962s16154.html#a11681849
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to