doebaladoo Posted July 21, 2009 Share Posted July 21, 2009 I'm busy creating a CMS but am in doubt about how to implement server-side caching of the pages. (The contect might change often, but the menu would be more unlikely to be changed frequently). If every page is cached by itsself, even a small operation in the menu (like editing a menu title) must edit EVERY page in the website. However, not caching the menu might cause high server loads. Is there a way in between (I'm thinking about caching the menu for pages that share the same menu, but am not sure on how to implement that)? Has anyone experienced this problem before? And if so, what was you solution? Quote Link to comment https://forums.phpfreaks.com/topic/166826-cms-and-server-side-chaching-of-the-menu/ Share on other sites More sharing options...
rhodesa Posted July 21, 2009 Share Posted July 21, 2009 Check out Smarty...it's a PHP templating engine and was designed for pretty much the exact reason you describe. It has features built right into it for caching. You can also do a simple include. So put the menu that is used on every page into an include, and update that include whenever the menu is changed. edit: forgot the link: http://www.smarty.net Quote Link to comment https://forums.phpfreaks.com/topic/166826-cms-and-server-side-chaching-of-the-menu/#findComment-879701 Share on other sites More sharing options...
ignace Posted July 21, 2009 Share Posted July 21, 2009 Memcache: http://be2.php.net/memcache + what rhodesa said Quote Link to comment https://forums.phpfreaks.com/topic/166826-cms-and-server-side-chaching-of-the-menu/#findComment-879702 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.