Welcome Guest, Not a member yet? Register   Sign In
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS

[eluser]ray73864[/eluser]
I put that change in, but i also put in an additional line to it, basically

Code:
log_message('debug',Deleting cache in: ' . $filename);

then i went to edit the page, changed the info in it, clicked on save and watched the debug output, but it didn't even print that message to the logfile, which makes me think that it isn't even calling the $this->cache->delete() function at all.

this is what i have now for that function:

Code:
function delete($filename = null)
    {
        if ($filename !== null) $this->filename = $filename;
        
        $file_path = $this->path.$this->filename;
        
    log_message('debug','Deleting cache in: ' . $filename);
        
        if (file_exists($file_path.'.cache')) unlink($file_path.'.cache');
        elseif (is_dir($file_path)) unlink($file_path);
        
        // Reset values
        $this->reset();
    }

which isn't working.


Messages In This Thread
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS - by El Forum - 06-01-2009, 05:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB