News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Richard Thomas' Blog:
Solar Framework Shorts - Multitenant caching
September 21, 2009 @ 08:03:59

Richard Thomas has posted another Solar short with a quick tip on using the framework to cache data correctly (and under different prefixes) automatically even for multi-tenant sites.

This gets even more problematic if you support third party developers/modules as they have to follow the same rules as well. Head problems off at the pass by using the Solar_Cache prefix config. This bit of code would be placed as soon you "identify" the site in question and get some sort of unique id for that site.

All it takes is creating a Solar_Cache object (set into the Solar_Registry object) with the prefix for any and all scripts to pull out and use. This can even be used with the Solar models to cache data pulled from the database automatically.

0 comments voice your opinion now!
solar framework cache prefix tutorial


blog comments powered by Disqus

Similar Posts

Stefan Mischook's Blog: Turning on display_errors in WAMP - Video Tutorial

WaxJelly Blog: Simple PHP script using the YouTube API (with pagination)

Jani Hartikainen's Blog: Unit testing part 2: Writing and running tests

Brian Swan's Blog: SQL Server Driver for PHP Connection Options: Snapshot Isolation

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 2)


Community Events





Don't see your event here?
Let us know!


install application community version voicesoftheelephpant series framework symfony security interview podcast library package release laravel composer introduction opinion language tool

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework