English 中文(简体)
CakePHP 2.1 资产目录
原标题:CakePHP 2.1 Asset Compress Plugin not creating cached files

I m 采用CakePHP Plugin PropertyCompress (v 0.7) 进行罚款,但目录中没有任何档案。 这是我的asset_compress.ini。 设置:

[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

附加说明:

  • 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)

是否有任何人经历过与资产压缩金相同的问题?


<>Update: 这是我用于安保部/Less部分的工作,工作做得很好:

问题回答

如果我能理解,。 Github siki page You should change cacheConfig = false to cacheConfig = real to take接手MemCache。

产生和储存资产中定义的静态资产——混凝土,或通过飞行中的资产压缩助手。 这样做是为了节省你们每当你们更换剪辑或剪辑文件时,必须人工操作ole。

这就是一些人将定义为“新生”的黑客,我称之为一种可行的解决办法。 它每当Filter(Filter)的审校操作时,就采用“The console”法,而“debug”则超过0。 因此,在生产过程中,你的精子水平应为0,前列())则起跑。

在您/app/Controller/AppController.php之前添加以下内容:

if(Configure::read( debug ) > 0){
  exec(APP. Console .DS. cake -app  .APP.  AssetCompress.asset_compress build -f );
}

假设你能够从奥古尔(中)或高频(窗口)操作正常的资产组合。





相关问题
jQuery - ScrollTo and Serial Scroll not working together

I have tested the scrollTo() plugin, but I need a way to stop the scrolling animation, so I am looking at serialScroll(). Here is what I used with scrollTo: $( #scroller ).scrollTo( 1000px , 3000); ...

jQuery deconstructors for plugins?

I m using the Galleria plugin inside an Accordion plugin to display images in a super cool way. A problem occurs, however, when I open up a new tab (in the accordion) then come back to the gallery tab....

XPCOM Security issues

I m developing a Firefox plugin using XPCOM, I ve not yet read all the docs, but as far as I can see, A plugin is simply a DLL that provides services via a XPCOM interface and interacts with the ...

Ruby on Rails plugin development process

I m considering developing aspects of a website as Rails plugins for reuse. My question is about the development process. Since each of these plugins will provide a "slice" of functionality, should ...

help mongrel wont start

I have decided to switch from Restful authentication to authlogic.. so what I did was delete every file and folder that got installed when I downloaded the plugin.. now when I try to "ruby script/...

Basic MEF workflow/usage

I m looking to a framework which will allow me to have a simple plugin system in my .NET application. It seems MEF is the framework which Microsoft is endorsing, and will become part of .NET 4 (it ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

java plugin cache and dynamic IP host

I m trying to use Amazon S3 and Amazon Cloudfront CDN to deliver the jar files of my applet application. I m seeing several cache misses of my jars by the java plugin. This is a show-stopper for me, ...

热门标签