PDA

View Full Version : How to set up caching


dutchbb
07-25-2014, 09:45 AM
We recently moved to a new server with more memory (128GB), now we want to optimize the caching to make optimal use of this.

Currenly I'm running Xcache, but I've read a lot of good stuff about PHP 5.5's Opcache , APC, Igbinary, Memcached ...

What combination should I use and I there a good tut out there?

Thanks

PS: server runs on nginx and ubuntu FYI

dutchbb
07-29-2014, 02:45 PM
anyone?

Dave
07-29-2014, 02:52 PM
I believe APC is developed by the contributors of PHP and is officially supported(?), that would be a good option to choose. I don't think there's a huge difference between the PHP caching modules.

You can do aggressive complete page caching with Varnish, but you must configure it so it will only cache content with users who are not logged in (check if cookie set for example). Users who are logged in obviously get shown different phrases and things on their screen.

Using MariaDB instead of MySQL will also show a nice improvement, MariaDB also has very nice caching features.
It's a matter of installing MariaDB and moving over your db files, no need to change any PHP settings since MariaDB works with all of the existing MySQL modules.

thetechgenius
04-02-2015, 09:30 PM
My Web Server that is running vBulletin is running on Windows Server 2008, so I decided to try out Wincache. And it has been running really well, I have it running as a PHP Extension, and I set it up with vBulletin. Like I said, its been running really well.