You must say "Goodbye" to WP Compress. If a page is cached there is no way to execute PHP, because a cached page is pure HTML, so WP Compress can't do its job, but don't worry. LiteSpeed Cache plugin for Wordpress has all you need to the same like WP Compress.