Thanks for the response ^^
Q1 and Q2 are about 2 different issues actually.
Q1: The 'issue' is more of an inconvenience when trying to debug/extend modules when using an IDE. Breakpoints go on one file, edits on other, things can get mixed up since the files have the same name and changes can be lost.
It's more of an annoyance (I can still delete cache manually every time I run) but it's a bit tedious and I'd prefer it if I could just set to compile the module on the fly. Maybe delete the module cache every time it runs and recompile, if I've set it to (I suppose I can just write that tho?)
Q2:
I don't use anything extra for caching. But I'm using TemplateEngineFactory and TemplateEngineSmarty for the templates, and these also compile and store in the cache...
Even so, they are mostly fine and update as they should. My only issue with them is that on this occasion (where I use the 'chunk' feature) my template variables for the chunk don't change when the template including the chunk changes.
Eg.
First time run:
Page: About Us
$title = About
Chunk
$title = About
Second time:
Page: Contact
$title = Contact <--All good!
Chunk
$title = About <--Still 'About' D:
I know it has to do with the fact TemplateEngineSmarty gets compiled first time I run and then is stored in cache; as everything works fine that first time when the compiled and cached version doesn't exist.
I think this 'issue' may have to do with how I use the code, I think I'm bending it to do what I want to be honest. I am not even sure where the compiled versions of the templates get their template variables from, I am pretty sure the variables not changing for the chunk template, are what my problem is.
I am rly confused on this second question...