K
K
Kirill Firsov2010-11-23 15:53:05
PHP
Kirill Firsov, 2010-11-23 15:53:05

Is memcash working properly?

Hello.
I use php + memcached
I display 20 videos on the page. from each video picture, link and video name.
Also my site supports many languages. (templater uses )
How to add data to memcache correctly?
Throw each video into the memcache with the key $video. $title. $key and at the output already process phrases <lang ...> by the templater
. there will be at least 20 "ghetts" from the memkesh on the page.
Or record all 20 videos in 1 $language key. $video
But then there will be one key for each language.
I have, for example, 6 languages
. I hope I explained it normally, if anything, I’ll clarify.
Thanks

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
MyraJKee, 2010-11-23
@MyraJKee

Read more about + memcached tags, it might help.

B
bdmalex, 2010-11-23
@bdmalex

I display 20 videos on the page, i.e. from each video picture, link and video name.
Why so many pictures???
I have, for example, 6 languages.
But to think for a minute about the development of the project “in the near future”? Usually, where there are 2 languages ​​... sooner or later a third one is created ... And where there are 6 now ... someday the question will arise, “how to add 7 languages ​​\u200b\u200bwithout suffering ..” ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question