I've inherited a website which was previously working (albeit a little slowly) but suddenly the PHP pages are loading incredibly slowly. Even a very simple "contact us" page takes about 10 seconds to display. The majority of the pages are HTML which are fine.
I don't know much about PHP or IIS! PHP version is 5.6.0.
Any ideas or suggestions much appreciated.
EDIT:
The problem was due to PHP session files not being deleted out of c:/windows/temp by the garbage collector. I'm not quite sure why because as far as I can tell the GC settings were ok...
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.gc_probability = 1
...and the permissions to the directory look good. The directory was getting bigger and bigger (hence why it was running slowly previously - they must have been stacking up for a while). Anyway I pointed php to a new directory and everything is working, with old sessions being deleted as they should have been.
[I'd actually tried to look in this directory but got a dialog box saying something like "you don't have access, click to enable" so I clicked, but then windows explorer stopped responding. I assumed I didn't have access to the directory (this has happened before), and moved on to something else. Silly me.]