Log Size / Maintenance
-
On each page load, the plugin queries the log files, with now some 260,000 rows this query takes 5 seconds.
How are the logs meant to be trimmed? Is there a process or instruction?
SELECT COUNT(*) FROM wp_gamipress_logs AS p LEFT JOIN wp_gamipress_logs_meta AS pm0 ON ( p.log_id = pm0.log_id ) LEFT JOIN wp_gamipress_logs_meta AS pm1 ON ( p.log_id = pm1.log_id ) LEFT JOIN wp_gamipress_logs_meta AS pm2 ON ( p.log_id = pm2.log_id ) WHERE p.user_id = '3' AND ( ( p.type = 'event_trigger' ) AND ( pm0.meta_key = '_gamipress_trigger_type' AND pm0.meta_value = 'gamipress_user_post_visit' ) AND ( pm1.meta_key = '_gamipress_post_id' AND pm1.meta_value = '3483' ) AND ( pm2.meta_key = '_gamipress_visitor_id' AND pm2.meta_value = '1' ) )
Time 6.2470 seconds
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Log Size / Maintenance’ is closed to new replies.