Comments (12)
the files was cleared even before the execution of _cache_assets function ...
am working on windows 7 with xampp
from assets-ci.
by the way i have just noticed that everything will work as it should when your configurations is like this
<?php
$config['assets']['combine_css'] = false;
$config['assets']['minify_css'] = false;
$config['assets']['combine_js'] = true;
$config['assets']['minify_js'] = false;
other wise it will delete the cached files and reproduce the same files again ..
for some reason am still cant figure it out why the lines 744 and 751 is called before checking if the files exists ..
the file is deleted then this function on line 372 called ..
from assets-ci.
Can you show me your code when you call the css() and js() methods (Assets::css() and Assets::js())?
from assets-ci.
And are you absolutely sure you have the latest version of the code? The one with CoffeeScript support?
from assets-ci.
for the code
<?php Assets::css_group('head',array('bootstrap.css','style.css')); ?>
<!-- end CSS-->
<?php Assets::js_group('head',array('modernizr-2.0.6.min.js'));?>
and also i tried
<?php Assets::css(array('bootstrap.css','style.css')); ?>
<!-- end CSS-->
<?php Assets::js(array('modernizr-2.0.6.min.js'));?>
and yes i have the latest code with coffee support , i download it from your repo
from assets-ci.
This is weird because it works on my local MAMP setup, and also on a test server. I don't have a Windows machine to test it on WAMP, will do it a little bit later. Perhaps your server time isn't set correctly?
Can you give me the filenames of the generated cache files?
from assets-ci.
i dont think its something related to the file name since as i told you before the files were deleted before checking the lastmodified var which you use ..
any way the name of the file is :
head.20120327220729.js
footer.20120402132034.js
from assets-ci.
and i just noticed, that this option has no effect at the the same file name regenerated again
<?php
$config['assets']['prefix_timestamp'] = false;
head.20120327220729.js
footer.20120402132034.js
from assets-ci.
@linuxjuggler Can you check you're not calling the Assets::clear_cache() method somewhere? I just tried it on a default WAMP setup and everything works without problems. Do you have any errors or warnings in your log?
Regarding the prefix_timestamp option, this will only work if you enable custom css or js prefixes in the config. But I see your point, it could be usefull when using groups. Have to think about this one.
from assets-ci.
am sure i didnt use it .. the only place i use your code is within my layout file ..
and there is no errors in my log file , you can check it http://pastebin.com/9LUGeh8R
any way i will try to upload my project to a linux server and monitor it ..
from assets-ci.
there is one thing i had to say that am using it as a spark so i have changed the version to be 1.0.0 as you stated in your code..
sparks/assets/1.0.0/
from assets-ci.
i have got your latest code from sparks .. deleted my old 1.0.0
and the same issue stay , the cache is auto cleared ..
one thing is that my config file is inside config/development/ folder ( but i dont think this is an issue )
any way i didnt test it yet on a linux server ..
from assets-ci.
Related Issues (20)
- adding a prefix to the cache files HOT 2
- feature request, option to load / not load the coffee library HOT 1
- auto clear bug HOT 4
- Assets:: calls in nested templates generate incorrect paths HOT 1
- CSSMin Config HOT 2
- Line 988 HOT 1
- first time execution produce this error HOT 18
- problem when using Assets::js and Assets::js_group HOT 16
- Enable dynamic URLs in link/script tags HOT 5
- CSS Minify problem with twitter bootstrap pull-right HOT 1
- Protocol-relative URL bug on IE HOT 1
- background image path 404 HOT 1
- Error HMVC and assets
- Update lessc.php to latest version HOT 1
- Absolute paths in complied CSS HOT 2
- Fatal error with coffeescript HOT 3
- New version of lessc.php fixes Bootstrap issues HOT 1
- Only a blank page HOT 1
- Angular question
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from assets-ci.