Serious performance issue with regards to caching - OJS 3

Hi @Jaimin,

In any system using caching, when you clear the caches, it’ll need to re-generate them. During that time period, the system will necessarily perform worse than if it had the caches already present.

A couple of thoughts…

  1. Are you regularly clearing the data caches? This shouldn’t be necessary.
  2. Have you investigated the database queries that are causing the system to experience performance problems? It’s possible that you have an underlying database performance issue, such as tables using mixed storage engines (InnoDB vs. MyISAM).
  3. If performance problems persist, and you do need to clear the data cache for some reason, you might want to re-generate the caches while the system is temporarily offline to outside users. To do this, for example, you could temporarily introduce a .htaccess rule that blocks access to anybody but your IP address; then click around the site (or use a series of wget commands) to cause the most important cache files to be re-generated. Then open up access to all other users. This will give OJS a chance to generate the cache files before a lot of users rush in simultaneously.

Regards,
Alec Smecher
Public Knowledge Project Team