V
V
v- death2015-11-08 00:39:30
go
v- death, 2015-11-08 00:39:30

How to properly embed the cache in an already finished system?

Hello. I made a website. There are currently two packages.
This is a site which, roughly speaking, is a set of functions due to how the site works
and the public package which has a web server in it, etc. in the functions of this package, the data is received and processed, which are transferred to the site package, and the data that comes from the site functions is processed.
Now we need to add the cache.
I have three options in my head
: 1. embed the cache in the functions of the public package
2. embed the cache in the functions of the site package
3. Make a cache layer and get the site ->cache ->public architecture where site,cache and public are different packages.
Which option would be better? If you have a better version than mine, please let me know :)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question