Can php output in develop be cached?
chielsen opened this issue · 1 comments
chielsen commented
I have a php script that should output JS code. This works fine in production and is cached. However on development the actual php coded is copied and not the output. Since I use__DIR__
, my script now cannot find the files it needs.
2 questions:
- is there a way i can use the
__DIR__
of the original file? - can the output of the script be cached? this would also work
neilime commented
You can use .php files as assets, there will be interpret, there cached if the file is not modified