Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder sitNsmile's Avatar
    Join Date
    Dec 2009
    Location
    Charlotte, NC
    Posts
    358
    Thanks
    19
    Thanked 2 Times in 2 Posts

    Exclamation question about APC_STORE

    Okay I know how the Caching works and how to use it, what I have a question on is. If I have 2 domains on 1 server and I have both domains use

    PHP Code:
    <? apc_store('main',1,3600); ?>

    and if each one stores with same name but is different data, when I use apc_fetch, I just need to know if the apc_store is for everything on server or domain. Hope this is making sense. If you get what I mean.

    or should I use different names such as 'main_domain1' and 'main_domain2' ?

    Thanks

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Best I know they are server specific, not domain specific.
    Store unique prefix/suffix to you're cache keys to limit the amount of confliction.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •