Note that there are some explanatory texts on larger screens.

plurals
  1. POinit Zend_Cache in Bootstrap (UTF-8)
    primarykey
    data
    text
    <p>I'm tryng to Cashe controllers from <strong>Bootstrap</strong></p> <p>I have controller called <strong>questionController</strong> and I'm using Arabic language when I cached the questionController (like code below) its work properly . but when I added routing to this controller like <strong>my.local/اسئله</strong> to <strong>questionController</strong> cache dose not work its only work when i call controller directly with his name but with his routing (Arabic) name dose not work. </p> <p>my function function in my <strong>Bootstrap.php</strong> is</p> <pre><code>protected function _initCache() { mb_internal_encoding("UTF-8"); $dir = "/var/www/data/cache/"; $frontendOptions = array( 'lifetime' =&gt; 10800, 'automatic_serialization' =&gt; true, 'debug_header' =&gt; true, 'regexps' =&gt; array( '$' =&gt; array('cache' =&gt; false), '/question' =&gt; array('cache' =&gt; true), ), 'default_options' =&gt; array( 'cache_with_cookie_variables' =&gt; true, 'make_id_with_cookie_variables' =&gt; false ) ); $backendOptions = array( 'cache_dir' =&gt;$dir ); $cache = Zend_Cache::factory('Page', 'File', $frontendOptions, $backendOptions); $cache-&gt;start(); } </code></pre> <p><strong>and my rout is</strong></p> <pre><code>$router-&gt;addRoute('questionRout', new Zend_Controller_Router_Route('اسئله', array('controller' =&gt; 'question', 'action' =&gt; 'view'))); </code></pre> <p><strong>my.local/question ---> cache working</strong></p> <p><strong>my.local/اسئله ---> not working</strong> and I used mb_internal_encoding("UTF-8").</p> <p>Please help me Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload