• Resolved blanch80

    (@blanch80)


    Hi,
    I’m on a virtual server running linux & PHP 7.2.30, I’m not sure what page cache method I should choose from the list, or how to make the decision?

    Opcode Cache is set as Zend Opcache.

    Would I choose the same for the database cache, running MySQL 5.6.47?

    Apache version: 2.4.43

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @blanch80

    Thank you for your inquiry and I am happy to answer.
    This all depends on your needs, the resources available on the server, website size and complexity etc.
    OPcache is a type of OPcode caching. This kind of caching compiles human-readable PHP code to code your server understands which is called opcode. This occurs when the PHP file loads on a web page for the first time. Then, it’s saved to the server’s memory for faster loading at each subsequent page visit.

    Bytecode cache engines such as OPcache, APC, and Xcache all complete this process the first time the PHP file is executed without having to do it a second, or third time.
    Using the Disk cache method means that all data will be stored to disk and it’s more persistent but slower and depending on the website size it can consume a lot of space on your disk.
    Using memory-based caching is always a better solution if your server allows that. you can also use Redis or Memcached if you install PHP modules on your server.
    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Which page cache method?’ is closed to new replies.