On 5 mayo, 08:18, bingo <[EMAIL PROTECTED]> wrote:
> hi bakers,
>
> I am trying to speed up things on my website by using caching. I have
> an action that displays all the articles that a user has in his
> library based on user id. I am not sure how to cache this action so
> that cache are stored for each user.
>
> Regards,
> Ritesh
Do you really need to cache that? Is that /really/ one of the slowest
parts of your app?
If so: Cache it, and look for it, manually (e.g. with a path that
includes the current user id, check the cache as the first line of the
method and process the cached page if it exists, otherwise.... save to
the cache at the end of the method).
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---