search
HomeCMS TutorialPHPCMSHow to solve the problem that phpcms cache is not updated

How to solve the problem that phpcms cache is not updated

How to solve the problem that phpcms cache is not updated

:

I am doing one recently Maintenance of previous projects, let me talk about this project. I did some secondary development of phpcms (recommended phpcms learning). I wrote a script to generate columns independently, which resulted in a large number of columns being added after running for a period of time. . Yesterday I added a few more columns, but suddenly I found that I couldn't update the cache.

When updating, only two lines of prompts are displayed. I went to update the column cache again. Oops, all the data came out. I scrolled to the bottom of the displayed SQL statement and saw - "MySQL server has gone away". It turned out that the cache was full.

Solution:

You need to configure the max_allowed_packet value in the my.ini file of mysql.

I am using wamp5, and there is no max_allowed_packet attribute in my.ini by default. I can only add it myself. I checked and the default is 1M. Generally, everyone sets it to 16M. Then add a "max_allowed_packet=16M" at the end of the file and it's OK. Now restart the server and update the cache. Is it completely normal?

If you need phpcms imitation site tutorial, please pay attention to the phpcms tutorial column.

The above is the detailed content of How to solve the problem that phpcms cache is not updated. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor