When someone visits my site, does that force the server to read all my site’s files – templates, plugins, wordpress, etc., before serving the page?
When someone does something that triggers a function written into a plugin , does my server have to re-read the plugin’s code before executing it?
Or is all the code cached somewhere, and only re-read if it knows that there’s been changes?
Because I’m writing a plugin that is quite lengthy. I could split it up into several small files, or leave it as one giant file.
I could use smaller files to separate out the functions, so that the server wouldn’t have to read a massive page just to find and execute one little function. But if all pages are re-read each time someone visits the site, then I might as well have all the plugin’s code on one single page.
Did that make sense?
Thanks for your responses
- The topic ‘Are templates and plugins re-read for each visitor?’ is closed to new replies.