Closed kevinklika closed 9 years ago
I fixed this issue and thought the resolution would be helpful for others.
To enable caching, you must have your ENV set up in the configuration file... There are two lines:
'cache' => array('prod', 'dev', 'local'),
'concat' => array('prod', 'dev', 'local'),
that must contain your environment name exactly. NOTE: this is what tripped me up! I thought FOR SURE the package specific configuration items would be placed under
/config/{env}/packages/codesleeve/asset-pipeline/config.php
but that is NOT the case! For some reason, in Laravel 4 this configuration file must be under
/config/packages/codesleeve/asset-pipeline/{env}/config.php
putting the correct configuration values in the correct location made caching function totally as expected.
I am confused how caching is supposed to work with this package. I have released my code to production and set the cache var in the configuration file to "prod" to match my environment name, but it appears that the file is being generated for every request? Is there something I should be doing after the launch to production (like publishing assets or something?)