Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can i do caching with php?

Tags:

php

caching

I have read a few things here and there and about PHP being able to "cache" things. I'm not super familiar with the concept of caching from a computer science point of view. How does this work and where would I use it in a PHP website and/or application.

Thanks!

like image 239
user27751 Avatar asked Jan 21 '26 04:01

user27751


1 Answers

You can cache:

  1. Query results
  2. The HTML output of a PHP script/request
  3. Cache variables
  4. Cache parts of a page.
  5. Cache the code itself (speeds up things, no need to do bytecode).

Each of those is a different subject with different methods.

like image 106
Itay Moav -Malimovka Avatar answered Jan 22 '26 16:01

Itay Moav -Malimovka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!