Title: Which page cache method?
Last modified: June 15, 2020

---

# Which page cache method?

 *  Resolved [blanch80](https://wordpress.org/support/users/blanch80/)
 * (@blanch80)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/which-page-cache-method/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwhich-page-cache-method%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/which-page-cache-method/#post-12987410)
 * Hello [@blanch80](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/which-page-cache-method/#post-12987410)
 * Status: resolved