Git Product home page Git Product logo

Comments (12)

zaherg avatar zaherg commented on July 17, 2024

the files was cleared even before the execution of _cache_assets function ...

am working on windows 7 with xampp

from assets-ci.

zaherg avatar zaherg commented on July 17, 2024

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.

bstrahija avatar bstrahija commented on July 17, 2024

Can you show me your code when you call the css() and js() methods (Assets::css() and Assets::js())?

from assets-ci.

bstrahija avatar bstrahija commented on July 17, 2024

And are you absolutely sure you have the latest version of the code? The one with CoffeeScript support?

from assets-ci.

zaherg avatar zaherg commented on July 17, 2024

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.

bstrahija avatar bstrahija commented on July 17, 2024

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.

zaherg avatar zaherg commented on July 17, 2024

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.

zaherg avatar zaherg commented on July 17, 2024

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.

bstrahija avatar bstrahija commented on July 17, 2024

@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.

zaherg avatar zaherg commented on July 17, 2024

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.

zaherg avatar zaherg commented on July 17, 2024

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.

zaherg avatar zaherg commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.