I've updated phpSmug to improve the caching and to take into account the SessionID 6 hour inactivity timeout after rolandk98 brought up a caching issue. I've also fixed a problem with escaping apostrophes when using a database for caching.