Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about cache path #1078

Closed
35598253 opened this issue Jun 21, 2018 · 5 comments
Closed

about cache path #1078

35598253 opened this issue Jun 21, 2018 · 5 comments

Comments

@35598253
Copy link

35598253 commented Jun 21, 2018

OS: windows 10
run
$foo = 'foobarbaz!';
cache()->save('foo', $foo, 300);
No response

print_r(\Config\Cache()->path)

C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Users\35598\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Bandizip;C:\Program Files\Microsoft VS Code\bin;C:\Users\35598\AppData\Local\Programs\Fiddler

path wrong;

@lonnieezell
Copy link
Member

First - please verify that you're using the most recent version of the develop branch. The $path var in the Handlers is protected and couldn't be printed that way, I don't believe.

Second - what is the $storePath setting in application\Config\Cache.php? and what driver are you using?

@35598253
Copy link
Author

35598253 commented Jun 22, 2018

i notfind $storePath in “application\Config\Cache.php”;
useing most recent version of the develop branch ”application\Config\Cache.php“

No response;

I using driver file;
change

https://github.com/bcit-ci/CodeIgniter4/blob/d48bba189ed4238fbb57ddf17bfb2cf8aa808c3b/system/Cache/Handlers/FileHandler.php#L62

$this->path = $config->storePath ?? WRITEPATH . 'cache';

OK!!

@lonnieezell
Copy link
Member

It sounds like you're not on the latest develop branch. That configuration is right here.

@35598253
Copy link
Author

35598253 commented Jun 25, 2018

I Know , I use configuration is latest develop, but
FileHandler

$config->path instead to be $config->storePath
Is ok !

@lonnieezell
Copy link
Member

Ah! I understand now. Fix will be up shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants