https://twill.io logo
Join Discord
Powered by
# ❓questions
  • y

    Young_Koekwaus

    10/13/2022, 5:39 PM
    i have this error Class cars specified in twill.dashboard configuration does not exists. On my hosting server but not local
  • y

    Young_Koekwaus

    10/13/2022, 5:40 PM
    what am i doing wrong?
  • y

    Young_Koekwaus

    10/13/2022, 5:46 PM
    I have uinstalled the vendor dir and install composer again but that didnt work out
  • y

    Young_Koekwaus

    10/13/2022, 6:17 PM
    Never mind it doesnt work on my local aswell
  • y

    Young_Koekwaus

    10/13/2022, 6:17 PM
    installed composer again
  • a

    asolopovas

    10/13/2022, 6:45 PM
    Like how I would use morphmap? I just imported hasMedia trait, I did not modify anything in my existing files.
  • i

    ifox

    10/13/2022, 6:46 PM
    morphmaps is a Laravel feature that you would use in your app service provider
  • a

    asolopovas

    10/13/2022, 6:47 PM
    Hi Everyone, why glide generated thumbnails request takes around 130 ms, is there a way to enable some sort of cache in twill.php? I could not find anything in docs
  • a

    asolopovas

    10/13/2022, 6:48 PM
    I know of morphmap, its just that I never done anything with it I used only default twill setup
  • i

    ifox

    10/13/2022, 6:49 PM
    @asolopovas that depends a lot on your configuration, are you using Glide with S3 or local storage?
  • a

    asolopovas

    10/13/2022, 6:49 PM
    I want to use local storage
  • i

    ifox

    10/13/2022, 6:50 PM
    then glide with local is creating a cache folder with the generated images and serves that
  • a

    asolopovas

    10/13/2022, 6:50 PM
    what does it take 120-130ms?
  • i

    ifox

    10/13/2022, 6:50 PM
    it goes through your Laravel app
  • i

    ifox

    10/13/2022, 6:50 PM
    to find the file
  • a

    asolopovas

    10/13/2022, 6:51 PM
    I understand that
  • i

    ifox

    10/13/2022, 6:51 PM
    if you are looking for performant image responses with Glide you'll have to think about a CDN or some layer of caching
  • a

    asolopovas

    10/13/2022, 6:51 PM
    are you saying that is slow by design and the only way is to use cdn?
  • a

    asolopovas

    10/13/2022, 6:51 PM
    so Filesystem cache can't do it quicker?
  • i

    ifox

    10/13/2022, 6:51 PM
    Laravel's is slow by design if you're looking at it this way
  • a

    asolopovas

    10/13/2022, 6:52 PM
    when I serve images from wordpress
  • a

    asolopovas

    10/13/2022, 6:52 PM
    there is not problems
  • i

    ifox

    10/13/2022, 6:52 PM
    you're probably serving static files that are not going through wordpress
  • a

    asolopovas

    10/13/2022, 6:52 PM
    even though I can't call wordpress slow, its just that there should be a way of caching
  • a

    asolopovas

    10/13/2022, 6:52 PM
    the request and location of the file rather then spin it through the whole request cycle
  • a

    asolopovas

    10/13/2022, 6:53 PM
    it just that If I pull 10 images its already 1.35 s
  • a

    asolopovas

    10/13/2022, 6:54 PM
    imgix.net manages to serve same type of URL in 14ms
  • a

    asolopovas

    10/13/2022, 6:55 PM
    how do they do that? What can't something like that be implemented with local cache?
  • i

    ifox

    10/13/2022, 6:57 PM
    Imgix is a CDN
  • i

    ifox

    10/13/2022, 6:57 PM
    I hear you though, let me finish this meeting and give you a better answer
1...415416417...484Latest