*

CBG

  • *****
  • 673
    • osDate Forum
Caching in osDate v2
« on: January 20, 2013, 01:15:21 PM »
osDate v2.0 introduces caching mechanism. It is based on two tier mechanism. The index page and profile pages are cached. Profile pages are cached only when profile pop up is enabled in configuration settings. Then it caches all mysql query results.

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 minutes.

There is an automatic mechanism to delete all cache files which are older than the expiry time limit.
There is also a cron job process provided for systems where you can add one more process to delete cache files. Cron jobs should be managed and controlled by users of osDate.

All cache files will be written to the folder /cache. This folder should be made Public Writeable. (chmod 777)

You can disable caching mechanism in Admin. Global Settings.
Regards,
CBG (Garry)
osDate: 2.6.5, 2.7 & Evo
PHP: 5.5.x/5.6.x (5.3.x to 5.6.x) | MySQL: 5.5.34-cll