thnx for the answer but I am abit confused. The function now has the following line:
qa_db_query_sub("REPLACE ^options (title, content) SELECT 'cache_userpointscount', COUNT(*) FROM ^userpoints");
(for site no1)
the table for site number 2 options is called qa_ace_options. What would the second line in the function be?
qa_db_query_sub("REPLACE qa_ace_options (title, content) SELECT 'cache_userpointscount', COUNT(*) FROM ^userpoints"); ?
And reverse in the qa_db_userpointscount_update of site2?