APC and cron jobs

Discussion in 'PHP' started by grutland, Jul 15, 2011.

  1. #1
    Hi,

    I'm trying to use APC to store some variables which come out of our DB to try and save time and resources.

    It seemed to be going fine until I tried using accessing the variables within a cron job.
    Is there any reason why I shouldn't be able to access them?

    The idea is, at the end of this cron job it will update this value within APC so that it appears on our website when the next user accesses it rather than hitting the DB again.

    Thanks in advance.
     
    grutland, Jul 15, 2011 IP