Usermenu


Login dauerhaft merken
Registrierung
Passwort vergessen
User Birthdays
meex (20)
rgfsalaga (23)
Users Online: 17
Poll
Keine Umfrage aktiv
Banners / Partner
www.fastwebs24.de Your fast Webspace Provider and more Sebel-Design Clandesigns.de
Contact
Optimized for
News - Details
Informationen zur ausgewählten Nachricht.

Neues Modul in der Datenbank: Datacache v2009.0.2
20.11.2009 um 15:35 Uhr - Clansphere Bot
Name: Datacache v2009.0.2
Author: Mindcrime
Category: Allgemein
Version: ClanSphere 2007 RC 1
Sprachen: English, German


Datacache module for ClanSphere v2009.0.2 - Release date 2009-11-20

WHAT DOES IT DO
===============

In short, it's a data caching system to prevent extensive database usage
for semi-static data. Semi-static data is data in ClanSphere that does
not really change that often, but which is currently being grabbed
from the database (via multiple queries) every time.

Examples are news, wars, articles. You do not write a new news/article every
minute of the day, or you add or change a war every minute. But everytime
someone visits your page, the list of recent news is being generated again
everytime using a lot of database queries, which can become a problem on
a website which is being visited frequently.

In order to improve the website performance, this datacache module can
cache this semi-static data, so that it takes less time and queries to
generate website content.

Example:
For a test site that I am currently developing, the test homepage
takes 1500 ms to generate when the recent news is not cached and takes between
35 and 38 SQL queries to generate (inclusive the test if the data is available
in the cache).
When using the cached version the test homepage takes 500 ms to generate and
takes 21 SQL queries to generate.
Performance wise:
The time to generate the homepage is shortened by 1000 ms or 66% performance
improvement and it needs 14 to 17 or 40% to 45% less queries to generate.

When caching even more stuff (like all the navlists) I can improve the performance
even more. I also changed the news module and used caching in such a way, that
the cache is never refreshed unless I have made changes to any news message (create,
edit, remove, publish). This means, that the cache in only refreshed when it had
a reason to be refreshed.

INSTALLATION
============

1) Upload all files except updates/ to your ClanSphere website.
2) On your website System -> Database -> Import.
Select updates/datacache_install.sql and press "Run".
3) You can now use the datacaching system for your mods.

OPTIONS
=======

The only option you can set is the default refresh time for a cached item.
By default it is set to 900 (15 minutes).

MORE INFO
=======

http://www.clansphere.net/index/board/thread/where/12219

Readme


Download: Datacache v2009.0.2

Bitte Login benutzen, um Kommentare zu schreiben.