Hello mate,

I used a lot of pictures in my application. Currently what I'm doing
is I cache the DAL Select like this:
 "db(....).select(db.photo.fileupload, db.photo.id, cache=(cache.ram,
3600))"

And when the users upload new pictures, in the "onaccept" function I
clear the cache like this:
-  cache.ram.clear()
So that the cache will be refreshed when the user load back the
pictures again.

- First, I want to know if it is a good approach ?
- Second, it is a better way to improve this design to make my system
faster ? (Because it is still a bit slow)
- Third, when I do this "cache.ram.clear" it actually clear the cache
for all users sessions, how can I only clear the cache of a single
user session NOT all of them ???

Please let me know.

Cheers,
Yannick P.

Reply via email to