Fork me on GitHub

help with pnRender cache  Bottom

  • i'm setting up caching in a module i wrote.


    but i'm stuck trying to figure out how the caching would work when i put sorting into the output.

    Code

    $pnRender->cache_id = md5($rid.$startnum.$sortby);



    this saves a unique cache file, but when i want to clear the cache,

    i want to clear the all the files with that $rid,

    Code

    $pnRender->clear_cache(null, md5($rid.$startnum.$sortby));


    only removes that one particular cache,




    if anyone can help, that would be great, or even to point me to a module that uses something similar to this. thanks in advance!
  • a little bump. anyone?
  • I'm not the greatest pnRender expert, but I don't think you can do this. You'll need to clear your entire pnRender cache for the specific module.

    Greetings
    R
  • rgasch

    I'm not the greatest pnRender expert, but I don't think you can do this. You'll need to clear your entire pnRender cache for the specific module.

    Greetings
    R



    hmmm. ok. thanks for the reply!
  • 0 users

This list is based on users active over the last 60 minutes.