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

MetaDataCacheFile how can I enable it? #158

Open
Deep21 opened this issue Jul 15, 2013 · 1 comment
Open

MetaDataCacheFile how can I enable it? #158

Deep21 opened this issue Jul 15, 2013 · 1 comment

Comments

@Deep21
Copy link

Deep21 commented Jul 15, 2013

Hello

I added this line 'cache' => new Tonic\MetadataCacheFile( DIR.'/../tmp/tonic.cache'),

and created a file "tonic.cache" but this file is empty.
how can i start using the cache file?

@peej
Copy link
Owner

peej commented Jul 15, 2013

It should just work.

Make sure that the tonic.cache file has the right permissions to be written to by your web server. If you made the file yourself the web server may not have permission to alter it. The MetadataCacheFile class will make the file itself if it doesn't exist as long as it has write permission on the directory.

By default we put the cache file in the /tmp directory since all users have permission to write there.

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