• Resolved kendawes

    (@kendawes)


    Hi!
    I really like Hummingbird and it works great!

    But I’ve just realized that Hummingbird saves its cached js and css files in the wp-content/uploads/year/month folders.

    I really want to only have images in those folders.

    How can I change the location of the Hummingbird cache?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @kendawes,

    It is not possible with out of the box options in Hummingbird. I’m checking with developers if there is any hook avaliable that would help with changing that directory. Will let you know about the feedback.

    kind regards,
    Kasia

    Thread Starter kendawes

    (@kendawes)

    Thanks!
    I think it would be a valuable feature to have!

    In the interim, is it possible to save me a lot of effort looking and point me to where I need to change the code?

    Thanks again!

    Hi @kendawes,

    You could try and change the upload code in file class-minify-group.php, line 1060
    $upload = wp_upload_bits( $filename, null, $file['response'] );
    You’d have to write your own function to replace wp_upload_bits().
    Or there’s an action you can hook into and possibly save the file to the new location, update the paths and delete the old one: fwp_hummingbird_after_upload_minify_group

    Best regards,
    Anton

    Thank you for using Hummingbird! I am going to close this topic for now. Let us know if you have any other questions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hummingbird Cache location’ is closed to new replies.