Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Resolve the problem that phpcms cannot read the cache

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you to solve the problem of phpcms can not read the cache, I hope you can learn a lot after reading this article, let's discuss it together!

What if phpcms can't read the cache?

The website runs normally on the server, get on my computer to enter the background of the website, update the cache page blank, visit the home page is still blank. Debugging found that it was not executed in include/common.inc.php until the following

The code is as follows:

$CACHE = cache_read ('common.php'); if (! $CACHE) {require_once' cache.func.php'; cache_all (); $CACHE = cache_read ('common.php');} extract ($CACHE); unset ($CACHE)

Recommended: download phpcms v9

Comment it out. You can get in. It is not possible to update the cache. You can see it on the home page, but you can't see the revised document.

Solution:

After debugging the cache_read function step by step, it is finally solved, because the value of memory_limit in php.ini is too small, just change it a little larger.

Restart apache or in the

$CACHE = cache_read ('common.php')

Add the following sentence before it

@ ini_set ('memory_limit',' 128M')

Set the amount of memory that php can use to 64m.

After reading this article, I believe you have a certain understanding of solving the problem of phpcms can not read cache, want to know more about it, welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report