Caching

Return to the Index

osDate v2.0 introduces a caching mechanism to improve performance and reduce your database load. It is based on two tier mechanism. The index page and profile pages are cached "fully" (ie., their entire content is cached). Profile pages are cached only when profile pop up is enabled in configuration settings. Then it caches all MySQL query results. Thus, there is a "page level cache" and a "query level cache".

Now what is the purpose of this?

This is expected to increase performance and reduce contention in MySQL access.

The expiry time for cache can be set in Configuration settings. Default is 15 mins, which means that the cached files will expire every 15 minutes. You can increase this value to reduce your server load.

There is an automatic mechanism to delete all cache files which are older than the expiry time limit. Also, there is a cron job process provided for systems where you can add one more process to delete cache files.

All cache files will be written to the folder /cache. This folder should be made writable by PHP. (chmod 777 or the minimum required permissions for writing by PHP)

You can disable caching mechanism in Admin Global Settings. It's strongly recommended that you keep this on for improved server performance.