Issues with Image Caching


Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #13474

    Yehia Abdel Salam

    Hi there,

    I have an issue with the image caching, resulting to the following urls:


    You can find the screenshot here

    I also have another question, is there a way to turnoff the image caching in general, an on/off switch, something in the config.ts for example

    Also for reference, I had to add the url_image variable to the input source, this is the domain of the website (e.g., otherwise all the request were for /wp-content/etc.. instead of when running locally

    ion-card class=”featured_course_block” [navPush]=”coursePage” [navParams]=”course”>
        div class=”featured_course_image”>
         lazy-img [inputSrc]=”url_image + course.featured_image”>lazy-img>
        ion-card-content class=”align-left”>
         star-rating *ngIf=”popular” [rating]=course.average_rating>star-rating>




    Please replace imageCache.ts in your src/services with the given ”  imageCache.ts ” provided on this link : ”



    Yehia Abdel Salam

    i know get those errors when doing ionic serve:


    [21:20:18]  typescript: C:/stage/e4y-mobile-app/e4y-app/src/services/imageCache.ts, line: 84
    Expected 0 arguments, but got 1.

    L83:  private getCachedFileURL(src: string): Observable<string> {
    L84:    return bindCallback<string, string[]>(ImgCache.getCachedFileURL)(src)
    L85:      .pipe(

    [21:20:18]  typescript: C:/stage/e4y-mobile-app/e4y-app/src/services/imageCache.ts, line: 95
    Expected 0 arguments, but got 1.

    L94:  private cacheFile(src: string): Observable<string> {
    L95:    return bindCallback<string, string>(ImgCache.cacheFile)(src);

    [21:20:18]  typescript: C:/stage/e4y-mobile-app/e4y-app/src/services/imageCache.ts, line: 103
    Expected 0 arguments, but got 1.

    L102:  private isCached(src: string): Observable<[string, boolean]> {
    L103:    return bindCallback<string, [string, boolean]>(ImgCache.isCached)(src);

    [21:20:18]  dev server running: http://localhost:8100/



    Well this is strange , and what happens when you revert back your change  ?

    Im not getting this error when I using the same imagecache.ts file on my setup .


Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.