Welcome Guest, Not a member yet? Register   Sign In
mp_cache
#1

[eluser]JanDoToDo[/eluser]
hey guys

I just tried using mp_cache and seem to be having a problem with it. It seems to write the cache file (as the log shows) but it never reads it. Here is my code
Code:
$this -> load -> library('MP_Cache');
        $cache_id = "ajax_tree/tree_view_" . "test";
        $cache_file = $this -> mp_cache -> get("$cache_id");

        if ($cache_file === FALSE) :
            echo "not using cache";
            $cache_file = $this -> load -> view($this -> config -> item('template_dir').'/ajax_tree', $x, TRUE);
            $this -> mp_cache -> write($cache_file, "$cache_id", 0);
            
        endif;

And the echo is always displayed on every page


Messages In This Thread
mp_cache - by El Forum - 02-04-2010, 05:35 AM
mp_cache - by El Forum - 02-04-2010, 06:21 AM
mp_cache - by El Forum - 02-04-2010, 06:28 AM
mp_cache - by El Forum - 02-04-2010, 06:29 AM
mp_cache - by El Forum - 02-04-2010, 08:24 AM
mp_cache - by El Forum - 02-04-2010, 08:31 AM
mp_cache - by El Forum - 02-04-2010, 08:33 AM
mp_cache - by El Forum - 02-04-2010, 08:34 AM
mp_cache - by El Forum - 02-04-2010, 08:36 AM
mp_cache - by El Forum - 02-04-2010, 08:51 AM
mp_cache - by El Forum - 02-04-2010, 09:01 AM
mp_cache - by El Forum - 02-04-2010, 09:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB