Opcache, storing cached files longer

Discussion in 'PHP' started by iso99, Jun 4, 2014.

  1. iso99

    iso99 Member

    I notice that that the cache flushes itself more frequently that I thought. I was thinking of how to store the cache for a longer period? I'm not sure what options to change.

    Currently, I have:
    opcache.force_restart_timeout = 180
    opcache.revalidate_freq = 60

    Is changing them to higher values advisable?

    Also, I'm using this box for shared hosting and memory model is mmap. Is SHM better or more memory hog?
  2. NiteWave

    NiteWave Administrator

    please try php suExec daemon mode:
    lsws webadmin -> Server -> External App -> lsphp5 -> Run On Start Up: suEXEC Daemon
  3. iso99

    iso99 Member

    I believe I've done that already, opcache is already working.
    But is it good to store the files in memory longer, and how to proceed with that?
  4. NiteWave

    NiteWave Administrator

    can you provide more info regarding
    1)about how long cache flushes itself, and how to know it ?
    2)increase force_restart_timeout to a bigger value, any help ?

Share This Page