Skip to content

Cache Clean Problem? #274

Closed
Closed
@jbcubed3

Description

@jbcubed3

Hi,

Having a problem with the clearing the cache and reading cache stats.

Code looks like this:
require_once("/phpfastcache/phpfastcache.php");
$cache = phpFastCache();
$cache->clean();

I can remove an individual cache object just fine with $cache->delete(); but clean();
is failing for some reason. Caching does seem to work though, just can't seem to clean() anymore - despite it working previously.

$array = $cache->stats();
print_r($array);

This outputs:
Array ( [info] => Array ( [Total [bytes]] => 0 [Expired and removed [bytes]] => 0 [Current [bytes]] => 0 ) [size] => 0 [data] => Array ( ) )

Any ideas on how to resolve? Am really stuck on this one!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions