Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timestamps not honored when debug = true #285

Closed
cwbit opened this issue May 13, 2016 · 4 comments
Closed

Timestamps not honored when debug = true #285

cwbit opened this issue May 13, 2016 · 4 comments
Milestone

Comments

@cwbit
Copy link

cwbit commented May 13, 2016

I think it is a recognized issue? - see #220, which was for the Cake2x version but was never closed.

when timestamp=true in the ini file, and 'debug'=>true in the config/app.php the AssetCompress helper only looks for the non-timestamped versions of the files. The only way to get things to work properly is to set debug to false.

Actually now that I've tried to regen without the timestamp it still isn't working in debug. I'm not sure if there's a file left over somewhere that is interfering?

Running the ini without the timestamp setting and the app in debug is not loading the assets for me at all. Switching debug to false works immediately.

@markstory
Copy link
Owner

Static assets are not used when debug mode is true. Generally the files are rebuilt on each request by the dispatcher filter. If the filter is not running, you won't get debug builds.

@markstory
Copy link
Owner

What does your config file look like? You can omit the asset definitions for brevity.

@markstory markstory added this to the 3.0.2 milestone May 13, 2016
@markstory
Copy link
Owner

Closing as we discussed on slack and figured the solution out (plugin was not bootstrapped).

@cwbit
Copy link
Author

cwbit commented May 13, 2016

OK mark helped me on this, if anyone else runs into this issue ...

Bob reads the manual. Bob calls Plugin::load('AssetCompress', ['bootstrap'=>true]);. Chris forgets the bootstrap part. Don't be like Chris. Be like Bob.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants