i'm new in PHP and want to try caching(for the first time), so i make website and it has :
- dynamic home page
- dynamic portfolio page
- dynamic contact page
- static about page
- static admin page
so i read the tutorial about caching and i try to make my own caching system:
using file cache based on the what page is requested, when the page is requested the cache system will check if there's cache in cache directory if there's no cache file yet then write all the output(html) from the php script(in this case output from output buffer) and if there's cache file that corresponds with the specific id(based on URI) then just include_once() the html file.
Then i read in CodeIgniter(i make this website using CI) says there's APC for caching, then i read again about APC, what i read about APC is that it caches the DB results, but now i'm confused which should i use
what i get so far:
- file caching probably would slower if there's alot of request (i dont know if this is true or not but i read it somewhere from search engine)
- APC is fast
but i'm still confused which i should use , i'm on shared hosting