• Resolved kolshix

    (@kolshix)


    How enable caching for all visitors and registered users except administrator ?

    when a user with the status of a subscriber enters the site, pages without caching are shown to him – but needs to show cached pages

    • This topic was modified 5 years, 5 months ago by kolshix.
Viewing 4 replies - 1 through 4 (of 4 total)
  • +1

    Hi,

    This is no currently possible, but I’ve added this to our todo list.

    In the mean time, you can turn on “serve cached pages to logged in users”. Then to view a non-cached version of a page when logged in, you can add any parameter to the URL. E.g. getwpo.com/?something=1

    Marc.

    Thread Starter kolshix

    (@kolshix)

    I checked the cache folders and the attachment page, it indicates

    <!– Cached by WP Optimize (gzip) – https://getwpo.com – Last modified: Mon, 28 Oct 2019 09:30:56 GMT –>

    I also checked the cache files on the server and they are present (Url image.php)

    
    > wp-contents 
     > cache
      > wpo_cache
       > domain
        > post name 
         > name attachment-page-from-gallery 1
         > name attachment-page-from-gallery 2
         > name attachment-page-from-gallery 3
         ...
    

    https://site.com/name-of-post/attachment-page-with-image-png/

    • This reply was modified 5 years, 4 months ago by kolshix.
    • This reply was modified 5 years, 4 months ago by kolshix.

    @kolshix Just to clarify, the attachments get cached like other posts. What’s not currently possible is to select which user role is served a cached version of the page. By default, a logged in user does not get any cache served. If you select “Serve cached pages to logged in users”, all logged in users will be served cached pages, no mater their role.

    In that context, I’m not sure what your previous message meant?

    Marc.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Don’t Caching only for admin’ is closed to new replies.