Hi.
What's the best and suitable place to put the caching, should it go into the viewer, or the model, or the controller ?
Thanks in advance.
Bye
| SitePoint Sponsor |




Hi.
What's the best and suitable place to put the caching, should it go into the viewer, or the model, or the controller ?
Thanks in advance.
Bye
It would depend on what you're caching, no other entity should be responsible for the functionality of another.
IMO, of course.
PHP Code:<?php
$model = new CachingModel();
$view = new CachingView();
?>
@AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

There was a similar thread not long ago:
http://www.sitepoint.com/forums/showthread.php?t=637597
I'm under construction | http://igstan.ro/


This is something AOP is great for. Unfortunately, I believe (could be wrong) the various PHP AOP implementations leave a lot to be desired.




I'm caching a result (object) from a query.
If you mean put it in the controller I disagreePHP Code:$model = new CachingModel();
to the controller doesn't mind if data are cached or not
IMHO
I took a look to Amenthes link
so I agree with Mastodont
@Ryan Wray interesting
Bye.
Are we talking caching in a folder or memory?




folder
Bookmarks