I read that I can use app/cache or app/logs for tmp files, but it doesn’t feel right because they are not gonna be removed unless I do it myself.
For example, I need to store a date in a file (I don’t want to use a database for this), and I only need it to be there for 2 or 3 days.
What can I do?
Is’s not a good practice to let the web server to write inside a bundle. You can do it but you’ll have to deal with permissions and it introduces a security risk…
Why not using /tmp (on a UNIX server) that is regularly cleaned or your own tmp dir like /home/ChocoDeveloper/tmp with cron task to clean it ?