Support » Plugin: WP-Optimize - Clean, Compress, Cache. » always cache for attachment

  • Resolved kolshix

    (@kolshix)


    on the site theme “image.php”
    how to enable mandatory caching for all types of users and visitors since this is an attachment page (The page is always static) ?

    
    if ( is_attachment() ) {
    	// always cache
    }
    
Viewing 1 replies (of 1 total)
  • Plugin Support Marc Lacroix

    (@marcusig)

    Hi there,

    This isn’t currently possible, as is_attachment isn’t available when the cache is served.

    Marc

Viewing 1 replies (of 1 total)
  • The topic ‘always cache for attachment’ is closed to new replies.