Hi guardian2k1,
You said:
Quote:
I don't quite understand the first question as limiting the number of queries to a database would seriously hamper any site design. Unfortunately I don't know enough about shared hosting to answer that question accurately.
I reread my first post, and it is very confusing the way I asked my first question. I apologize for that.
I'm not worried about any hampering of the site design. I'm primarily wondering how and when XOOPS attempts to make database connections. For example, when a user first loads my home page, if 20 database queries are run during the page load for that user, will the 20 queries count as one user connection? Or, does XOOPS connect and then disconnect for each query that is run? In other words, does 20 queries = 20 connections? I'm assuming that this isn't the case, but I'm not completely sure.
The reason I'm asking this question is because many of the shared hosting plans have a limitation on simultaneous database connections. My plan has a limitation of 15 concurrent connections. Thus, if each query is a connnection (rather than each user generated set of queries equaling one connection), then the connection limitations will be that much more of a problem when managing the limited resources on a shared plan.
I'm using caching, and that reduces the quantity of queries very significantly. I'm very happy with that, since it will boost performance. However, the database connection limitations with shared web hosts is still worrying me. The caching helps a lot, but there is still a significant quantity of queries that are run even with efficient caching.
You said:
Quote:
As for the forum, caching is a really bad idea and should be avoided. Check wolf factorys Caching guide for tips. We currently host our site on a shared server and by using this guide and searching through the forums we were able to dramatically increase the performance of xoops.:)
I agree that it is not an ideal situation to cache a forum, even for 30 seconds. Although, for very busy forums on shared servers, a notice could be posted that new posts will not appear for 30 seconds. That still may be very annoying to users though. And, I'm not really sure what other weird affects may occur with a forum cache. I guess I would have to test and observe, which I may do.
My only reason for considering a forum cache is to prevent reaching the database connection limitations of the shared hosting plans, since forums often generate the most concurrent traffic. If the forum is very busy and on a shared server, then there could be many database connecton errors generated. A 30 second cache may reduce this problem quite a bit. It would be nice if there were even shorter caches available, such as a 10 or 15 second cache, which may go a long way in preventing the limitations from being reached (and not annoying users too much).
Anyway, if I experiment with forum caching, then I will let everyone know how it works out.
Dave