• Resolved hicks78

    (@hicks78)


    Hi all.

    I have a multi-autor blog with about 50 users. I noticed when users are logged in and browsing the blog Autoptimize generates lots of .js files. One for each post and user.

    Is there any way to disable the generation of cache files for users logged in?

    Thanks!

    https://ww.wp.xz.cn/plugins/autoptimize/

Viewing 1 replies (of 1 total)
  • Plugin Author Frank Goossens

    (@futtta)

    you could either try to find out which (inline) JS is being added for logged in users and exclude that from optimization or you could use the API’s “autoptimize_filter_noptimize” filter and return true if is_user_logged_in is true (there’s example code for the use of “autoptimize_filter_noptimize” in autoptimize_helper.php_example).

    hope this helps,
    frank

Viewing 1 replies (of 1 total)

The topic ‘Do not cache file generation when user logged in’ is closed to new replies.