我需要在部署新版本的站点时清除所有APC缓存条目.APC.php有一个用于清除所有操作码缓存的按钮,但是我没有看到用于清除所有用户条目或所有系统条目或所有每个目录条目的按钮.
是否可以通过命令行或其他方式清除所有缓存条目?
我已经更改了实体的主键,但现在我收到了这个错误:
ReflectionException Property DnD\\ApiBundle\\Entity\\Agent::$id does not exist
Run Code Online (Sandbox Code Playgroud)
我的实体是这样的:
<?php
namespace DnD\ApiBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation\Groups;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Column;
/**
* Agent
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="DnD\ApiBundle\Repository\AgentRepository")
*/
class Agent
{
/**
* @var string
*
* @Groups({"list", "details"})
* @Id
* @Column(type="string", length=255)
*/
private $agentId;
...
Run Code Online (Sandbox Code Playgroud)
我已经清除了doctrine缓存,但错误仍然存在.为什么会这样呢?
谢谢!