tonic
tonic copied to clipboard
MetaDataCache suggestion
I really like the cache feature, and that you can pass resources directly in options ;)
But just a suggestion to maybe create another class called MetadataCacheInclude
or something.
Basically it writes a PHP file to disk, and includes it next time around. Even more simple alternative to MetadataCacheFile
.
Too much kool-aid?
Not sure what you mean, can you explain?
Something like:
public function save($resources)
{
return file_put_contents($this->filename, '<?php return ' . var_export($resources, true) . ';');
}
public function load()
{
return include $this->filename;
}