| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 5510|Reply: 4
Collapse the left

[need help] Explain the cache process in Discuz?

[Copy link]

 Vietnam

Post time: 2012-05-10 06:19
| Show all posts |Read mode
Can any one explain the cache process of Discuz?

- when will it make cache?
- what will it cache?
- who? mean which function or class or ...
- how?



 United States

Post time: 2012-05-10 07:15
| Show all posts
Here, for supporting~~

 Russia

Post time: 2012-05-10 08:44
| Show all posts
"To cache or not to cache? That is the question!" (c) W. Shakespeare  

Where to cache?
It is set in config. May be "file" or "sql".
I prefer the "file" method because of minimuzing the sql server loading.

What to cache?
This is defined by developers.
As usual, all the often used data can be cached.
I.e. forum list, compiled templates, styles, smiles, plugin data, statistics, etc.
All the used cache types can be discovered by browsing the "/source/function/cache/" folder.

When to cache?
It is configured by the "cache live time", and can be different for different data.

Who doing the cache?
The caching feature is called from a lot of engine places.
But the core caching feature is placed in "/source/function/cache/function_cache.php".

How the cache is made?
Let you digg it by yourself, just look inside the "/source/function/cache/function_cache.php" file.

 Vietnam

 Author| Post time: 2012-05-10 13:22
| Show all posts
thx VOT

just need to know where to begin
and you answer is good enough

 Palestine

Post time: 2012-05-11 18:08
| Show all posts
"/source/function/cache/function_cache.php".


it's "/source/function/function_cache.php".
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-05 00:56 GMT+3 , Processed in 0.050002 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list