Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CakePHP 2.1 Asset Compress Plugin not creating cached files

I'm using the CakePHP Plugin AssetCompress (v 0.7) which works fine, except that it doesn't cache any files in the directory. This is my asset_compress.ini setup:

[General]
writeCache = true
cacheConfig = false
alwaysEnableController = true
debug = false

[js]
timestamp = true
paths[] = WEBROOT/js/
cachePath = WEBROOT/cache_js/

[speedtest.min.js]
files[] = speedtest/speedtest.js

Additional notes:

  • I set debug to "0" in core.php
  • the cache_js folder is writeable (777)
  • also I'm using MemCache as a caching engine (not sure if this might cause the issue)

Has anybody experienced the same issue with the Asset Compress plugin?


Update: This is what I use for the CSS/Less part, works pretty well: https://github.com/Hyra/less

like image 399
Christian Strang Avatar asked May 06 '12 10:05

Christian Strang


1 Answers

If I understand well this Github's wiki page you should change cacheConfig = false to cacheConfig = true to take advantage of MemCache.

like image 136
Jérémie Parker Avatar answered Oct 10 '22 14:10

Jérémie Parker