Reputation: 3524
I am playing around with the Alternative PHP Cache APC, and I can't find answers to some of my questions.
Thank you,
Upvotes: 1
Views: 375
Reputation: 157989
For the 1 and 2 I have no proof but I believe the caching is done for the included files as well. Otherwise it will just make no sense. There are huge applications with single entry point and other files included at various levels. Don't you think all these apps cannot utilize APC at all?
For the pure html files I'd suggest you to use readfile()
instead of include()
and thus involve no caching at all.
For the files with a few php variables (Template files) you HAVE to keep them in cache as the entire point of caching is skipping of parsing part. Otherwise you will make PHP parse these files all the time, which is not your desire, I believe.
You can use APC for storing sessions. I dunno ifit's better or not. Just try and see which better suits you. There are no strict standards, I believe.
Upvotes: 2
Reputation: 255115
apc.stat
directive before retrieving file's opcode from the memory php will check if file has been modified (only stat is requested, no content reading)apc.stat
as 0
. Include some file, delete it and nothing should happen. The script should work as the file hasn't been deletedapc.filters
Upvotes: 1