osclass / Osclass

With Osclass, get your own classifieds site for free. Build your own Osclass installation and start advertising real estate, jobs or whatever you want- in minutes!
http://osclass.org/
649 stars 342 forks source link

Cache multisite #1668

Open garciademarina opened 10 years ago

garciademarina commented 10 years ago

Right now multisite installation, share the same cache, it's needed to append site url in the cache key.

dev-101 commented 10 years ago

Hi Carlos,

I have solved this issue by multi-instancing Memcache server and assigning different ports to different Osclass installations. It is now working great, no more timeout issues, categories mix-up, users normally log-in etc (this last thing wasn't the issue anyway, just mentioning it).

The timeout execution bug was occuring only on a second site, most probably because Memcache 'realized' that something is wrong with the keys, and so, refusing to return 'cached' versions for the second site which properly belong to/are pulled from first site, like in the case of APC(u), because it is not aware of vhosts concept, applications etc. addition/edit: but it did returne 'wrong' cache most of the time.

The Memcache issue was solved thanks to this question and answer @ stackoverflow:

http://stackoverflow.com/questions/5928387/how-can-we-create-two-instances-of-memcached-server-in-same-server-in-different

resources: 1 official site: https://code.google.com/p/memcached/wiki/NewConfiguringServer#Multiple_Instances 2 discusion: https://code.google.com/p/memcached/issues/detail?id=82 3 GitHub fork: https://gist.github.com/gimler/612961

Thanks for your consideration of reported bugs and willingness to solve them! Regards

dev-101 commented 10 years ago

This issue is solved (it should be closed)