I have a wordpress blog in which for learning purposes I have enabled database cache using file cache and I have custom programmed the cache invalidation. But the lag is quite bad. The page load time jumps from 0.5 seconds to almost 4 seconds. Why is the lag so much? Is there any way I can improve this? is it possible to enable ram cache on shared hosting with cpanel?