We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

View Complete Thread
  • Re: Locking Up / Not Responding / 500 Error

    Mar 07, 2014 07:20 AM|laurin1|LINK

    Actually, my age and ttl code looks like this:

    44      /**
    45       * @param mixed $key
    46       * @return int
    47       */
    48      public static function getTimeLeftInSeconds($key){
    49 
    50           return (int) wincache_ucache_info(false, $key)["ucache_entries"][1]["ttl_seconds"];
    51 
    52 
    53      }
    54 
    55      /**
    56       * @param mixed $key
    57       * @return mixed
    58       */
    59      public static function getAgeOfEntryInSeconds($key){
    60 
    61           return (int) wincache_ucache_info(false, $key)["ucache_entries"][1]["age_seconds"];
    62 
    63      }